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

Function emit

packages/shared/src/components/shell/useShellScroll.ts:30–36  ·  view source on GitHub ↗
(next: ShellScrollState)

Source from the content-addressed store, hash-verified

28const listeners = new Set<() => void>();
29
30const emit = (next: ShellScrollState) => {
31 if (state === next) {
32 return;
33 }
34 state = next;
35 listeners.forEach((listener) => listener());
36};
37
38const onScroll = () => {
39 // A sheet pins the body while it is open, which reads as a jump to the

Callers 3

onScrollFunction · 0.70
revealShellFunction · 0.70
expectShellScrollFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected