decord/source/modules/gateway/useRequestGatewaySocket.tsx

28 lines
990 B
TypeScript
Raw Normal View History

// Module ID: 14648
// Function ID: 14649
2026-07-20 16:05:17 +00:00
// Name: useRequestGatewaySocket
// Dependencies: [19, 11433, 7859, 2]
2026-07-20 16:05:17 +00:00
// Exports: useRequestGatewaySocket
// Module 14648 (useRequestGatewaySocket)
import RequestGatewaySocketAll from "RequestGatewaySocket" /* 7859 */;
import DiscordAppStateDefault from "DiscordAppState" /* 11433 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const size = fn(2);
const result = size.fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
2026-07-20 16:05:17 +00:00
export const useRequestGatewaySocket = function useRequestGatewaySocket(arg0) {
2026-08-24 06:08:38 +00:00
importDefault = arg0;
const canUIRequestGatewaySocket = DiscordAppStateDefault.useCanUIRequestGatewaySocket();
2026-07-20 16:05:17 +00:00
const items = [arg0, canUIRequestGatewaySocket];
const effect = noop.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (canUIRequestGatewaySocket) {
RequestGatewaySocketAll.setRequestedBy(closure_0);
2026-07-20 16:05:17 +00:00
return () => {
canUIRequestGatewaySocket(dependencyMap[2]).stopRequest(closure_1_0);
2026-07-20 16:05:17 +00:00
};
}
}, items);
};