Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
60
export
const
takeViewSwitch = (): boolean => {
61
const
isViewSwitch = pendingViewSwitch;
62
pendingViewSwitch = false;
63
return
isViewSwitch;
64
};
65
66
export
const
isScrollRestoring = (): boolean => !!activeRestoration;
67
Callers
1
onLeave
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected