decord/alpha/source/modules/gateway/useRequestGatewaySocket.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

27 lines
990 B
TypeScript

// Module ID: 14935
// Function ID: 14936
// Name: useRequestGatewaySocket
// Dependencies: [19, 11649, 8086, 2]
// Exports: useRequestGatewaySocket
// Module 14935 (useRequestGatewaySocket)
import RequestGatewaySocketAll from "RequestGatewaySocket" /* 8086 */;
import DiscordAppStateDefault from "DiscordAppState" /* 11649 */;
import noop from "module_19" /* 19 */;
const size = fn(2);
const result = size.fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
export const useRequestGatewaySocket = function useRequestGatewaySocket(arg0) {
importDefault = arg0;
const canUIRequestGatewaySocket = DiscordAppStateDefault.useCanUIRequestGatewaySocket();
const items = [arg0, canUIRequestGatewaySocket];
const effect = noop.useEffect(() => {
if (canUIRequestGatewaySocket) {
RequestGatewaySocketAll.setRequestedBy(closure_0);
return () => {
canUIRequestGatewaySocket(dependencyMap[2]).stopRequest(closure_1_0);
};
}
}, items);
};