Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ expectViewSwitch
Function
expectViewSwitch
packages/shared/src/lib/scrollRestoration.ts:56–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
54
let
pendingViewSwitch = false;
55
56
export
const
expectViewSwitch = (): void => {
57
pendingViewSwitch = true;
58
};
59
60
export
const
takeViewSwitch = (): boolean => {
61
const
isViewSwitch = pendingViewSwitch;
Callers
3
useProfileSegment
Function · 0.90
switchView
Function · 0.90
switchPage
Function · 0.90
Calls
no outgoing calls
Tested by
2
switchView
Function · 0.72
switchPage
Function · 0.72