MCPcopy Create free account
hub / github.com/block/buzz / useFeatureSnapshot

Function useFeatureSnapshot

desktop/src/shared/features/useFeatureEnabled.ts:75–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 * Use this in components that need the full state (e.g. SettingsView filtering).
74 */
75export function useFeatureSnapshot(): Record<string, boolean> {
76 useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
77 return getParsedSnapshot();
78}
79
80/**
81 * Returns whether a feature is enabled.

Callers 2

SettingsViewFunction · 0.90
useFeatureEnabledFunction · 0.85

Calls 1

getParsedSnapshotFunction · 0.85

Tested by

no test coverage detected