MCPcopy Create free account
hub / github.com/dailydotdev/apps / useGqlBatchingFlag

Function useGqlBatchingFlag

packages/shared/src/hooks/useGqlBatchingFlag.ts:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7// query. The companion content script keeps its own request protocol and never
8// goes through here.
9export const useGqlBatchingFlag = (): void => {
10 const isEnabled = useFeature(featureGqlBatching);
11
12 useEffect(() => {
13 setGqlBatchingEnabled(!!isEnabled);
14 }, [isEnabled]);
15};

Callers 1

ShellStateProviderFunction · 0.90

Calls 2

useFeatureFunction · 0.90
setGqlBatchingEnabledFunction · 0.90

Tested by

no test coverage detected