diff --git a/packages/query-core/src/utils.ts b/packages/query-core/src/utils.ts index 26b5ba0d32..3fecede3fb 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 document === 'undefined' +export const isServer = typeof window === 'undefined' || 'Deno' in window export function noop(): undefined { return undefined