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

Function onRouteChangeStart

packages/shared/src/hooks/useCloseOnBack.ts:102–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 // A navigation the overlay did not start (a link inside it) leaves its
101 // entry where it is: going back over it then shows the same page.
102 const onRouteChangeStart = () => {
103 if (!releasing.current) {
104 isPushed.current = false;
105 }
106 };
107
108 router.beforePopState(
109 (state) =>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected