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

Function handleStorage

desktop/src/shared/features/useFeatureEnabled.ts:16–20  ·  view source on GitHub ↗
(event: StorageEvent)

Source from the content-addressed store, hash-verified

14 // pattern used by useChannelSections / useChannelStars / useChannelMutes /
15 // useThreadFollows.
16 const handleStorage = (event: StorageEvent) => {
17 if (event.key === OVERRIDES_KEY) {
18 emitChange();
19 }
20 };
21 window.addEventListener("storage", handleStorage);
22
23 return () => {

Callers

nothing calls this directly

Calls 1

emitChangeFunction · 0.85

Tested by

no test coverage detected