decord/source/modules/gateway/useRequestGatewaySocket.tsx

25 lines
848 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 13535
// Function ID: 104137
2026-07-20 16:05:17 +00:00
// Name: useRequestGatewaySocket
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 9492, 652, 2]
2026-07-20 16:05:17 +00:00
// Exports: useRequestGatewaySocket
2026-07-24 07:16:23 +00:00
// Module 13535 (useRequestGatewaySocket)
2026-07-23 10:11:24 +00:00
import result from "result";
const result = require("addToken").fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
2026-07-20 16:05:17 +00:00
export const useRequestGatewaySocket = function useRequestGatewaySocket(arg0) {
const importDefault = arg0;
2026-07-24 07:16:23 +00:00
const canUIRequestGatewaySocket = importDefault(9492).useCanUIRequestGatewaySocket();
2026-07-20 16:05:17 +00:00
const items = [arg0, canUIRequestGatewaySocket];
const effect = React.useEffect(() => {
if (canUIRequestGatewaySocket) {
2026-07-23 10:11:24 +00:00
canUIRequestGatewaySocket(outer1_2[2]).setRequestedBy(closure_0);
2026-07-20 16:05:17 +00:00
return () => {
2026-07-23 10:11:24 +00:00
canUIRequestGatewaySocket(outer2_2[2]).stopRequest(outer1_0);
2026-07-20 16:05:17 +00:00
};
}
}, items);
};