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

Function arrive

packages/shared/src/components/shell/shellMove.ts:171–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169 // return has landed its scroll; a few frames under the still copy cover
170 // both, unseen.
171 const arrive = () => {
172 window.clearTimeout(timeout);
173 listeners.forEach(([name, handler]) => router.events.off(name, handler));
174 let frames = 3;
175 const tick = () => {
176 frames -= 1;
177 if (frames > 0) {
178 frame = requestAnimationFrame(tick);
179 return;
180 }
181 slide();
182 };
183 frame = requestAnimationFrame(tick);
184 };
185 listeners.push(
186 ['routeChangeComplete', arrive],
187 ['routeChangeError', cleanup],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected