diff --git a/packages/query-core/src/utils.ts b/packages/query-core/src/utils.ts index cb8462f4a1..26b5ba0d32 100644 --- a/packages/query-core/src/utils.ts +++ b/packages/query-core/src/utils.ts @@ -68,7 +68,7 @@ export type QueryTypeFilter = 'all' | 'active' | 'inactive' // UTILS -export const isServer = typeof window === 'undefined' +export const isServer = typeof document === 'undefined' export function noop(): undefined { return undefined