MCPcopy Index your code
hub / github.com/simstudioai/sim / isUpgradeCall

Function isUpgradeCall

apps/sim/app/_shell/providers/session-provider.test.tsx:134–141  ·  view source on GitHub ↗

True when the getSession call is the upgrade (disableCookieCache) read.

(arg: unknown)

Source from the content-addressed store, hash-verified

132
133/** True when the getSession call is the upgrade (disableCookieCache) read. */
134function isUpgradeCall(arg: unknown): boolean {
135 return Boolean(
136 arg &&
137 typeof arg === 'object' &&
138 'query' in (arg as Record<string, unknown>) &&
139 (arg as { query?: { disableCookieCache?: boolean } }).query?.disableCookieCache === true
140 )
141}
142
143describe('useSessionQuery', () => {
144 it('uses an all-rooted key factory and a 5-minute staleTime', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected