decord/source/modules/gateway/useRequestGatewaySocket.tsx

25 lines
835 B
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 13925
// Function ID: 13926
2026-07-20 16:05:17 +00:00
// Name: useRequestGatewaySocket
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 10501, 675, 2]
2026-07-20 16:05:17 +00:00
// Exports: useRequestGatewaySocket
2026-08-15 05:55:55 +00:00
// Module 13925 (useRequestGatewaySocket)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const result = require("setRequestedBy").fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
2026-07-20 16:05:17 +00:00
export const useRequestGatewaySocket = function useRequestGatewaySocket(arg0) {
const importDefault = arg0;
2026-08-15 05:55:55 +00:00
const canUIRequestGatewaySocket = importDefault(10501).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-29 08:29:29 +00:00
outer1_1(outer1_2[2]).stopRequest(closure_0);
2026-07-20 16:05:17 +00:00
};
}
}, items);
};