MCPcopy 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

54let pendingViewSwitch = false;
55
56export const expectViewSwitch = (): void => {
57 pendingViewSwitch = true;
58};
59
60export const takeViewSwitch = (): boolean => {
61 const isViewSwitch = pendingViewSwitch;

Callers 3

useProfileSegmentFunction · 0.90
switchViewFunction · 0.90
switchPageFunction · 0.90

Calls

no outgoing calls

Tested by 2

switchViewFunction · 0.72
switchPageFunction · 0.72