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

Function emit

packages/shared/src/components/shell/shellFieldStore.ts:16–22  ·  view source on GitHub ↗
(next: ShellFieldState)

Source from the content-addressed store, hash-verified

14const listeners = new Set<() => void>();
15
16const emit = (next: ShellFieldState) => {
17 if (state.mounted === next.mounted && state.focused === next.focused) {
18 return;
19 }
20 state = next;
21 listeners.forEach((listener) => listener());
22};
23
24const subscribe = (listener: () => void) => {
25 listeners.add(listener);

Callers 2

setShellFieldFocusedFunction · 0.70
useRegisterShellFieldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected