Skip to content

Commit 34e0ad2

Browse files
authored
feat(query-core): improve environment check to support more server runtimes (#4578)
1 parent 23bd564 commit 34e0ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export type QueryTypeFilter = 'all' | 'active' | 'inactive'
6868

6969
// UTILS
7070

71-
export const isServer = typeof window === 'undefined'
71+
export const isServer = typeof document === 'undefined'
7272

7373
export function noop(): undefined {
7474
return undefined

0 commit comments

Comments
 (0)