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

Function takeViewSwitch

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

Source from the content-addressed store, hash-verified

58};
59
60export const takeViewSwitch = (): boolean => {
61 const isViewSwitch = pendingViewSwitch;
62 pendingViewSwitch = false;
63 return isViewSwitch;
64};
65
66export const isScrollRestoring = (): boolean => !!activeRestoration;
67

Callers 1

onLeaveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected