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

Function stop

packages/shared/src/lib/scrollRestoration.ts:81–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 let stopped = false;
80
81 const stop = () => {
82 stopped = true;
83 cancelAnimationFrame(frame);
84 window.clearTimeout(timeout);
85 window.clearInterval(poll);
86 observer?.disconnect();
87 controller.abort();
88 if (activeRestoration === stop) {
89 activeRestoration = undefined;
90 }
91 };
92
93 const restore = () => {
94 if (stopped) {

Callers 3

restoreFunction · 0.70
restoreScrollPositionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected