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

Function emitChange

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

Source from the content-addressed store, hash-verified

28
29/** Notify all subscribers that feature state changed */
30export function emitChange(): void {
31 cachedRaw = null;
32 cachedParsed = null;
33 for (const listener of listeners) listener();
34}
35
36// useSyncExternalStore requires getSnapshot to return a referentially stable
37// value when nothing has changed. Returning `JSON.stringify(getOverrides())`

Callers 2

handleStorageFunction · 0.85
useFeatureToggleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected