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

Function setShellEdge

packages/shared/src/components/shell/useShellScroll.ts:98–104  ·  view source on GitHub ↗
(px: number)

Source from the content-addressed store, hash-verified

96// Where the block's bottom edge rests on screen: its height plus whatever
97// stands above it (the status bar in the wrappers, the phone ad strip).
98export const setShellEdge = (px: number): void => {
99 if (edge === px) {
100 return;
101 }
102 edge = px;
103 listeners.forEach((listener) => listener());
104};
105
106export const useShellEdge = (): number =>
107 useSyncExternalStore(

Callers 1

publishFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected