True when the getSession call is the upgrade (disableCookieCache) read.
(arg: unknown)
| 132 | |
| 133 | /** True when the getSession call is the upgrade (disableCookieCache) read. */ |
| 134 | function 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 | |
| 143 | describe('useSessionQuery', () => { |
| 144 | it('uses an all-rooted key factory and a 5-minute staleTime', () => { |
no outgoing calls
no test coverage detected