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

Function subscribe

packages/shared/src/components/shell/shellFieldStore.ts:24–29  ·  view source on GitHub ↗
(listener: () => void)

Source from the content-addressed store, hash-verified

22};
23
24const subscribe = (listener: () => void) => {
25 listeners.add(listener);
26 return () => {
27 listeners.delete(listener);
28 };
29};
30
31export const setShellFieldFocused = (focused: boolean): void =>
32 emit({ mounted: state.mounted, focused: state.mounted && focused });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected