Skip to content

Commit

Permalink
feat(query-core): improve environment check to support more server ru…
Browse files Browse the repository at this point in the history
…ntimes (#4578)
  • Loading branch information
illuzan committed Dec 1, 2022
1 parent 23bd564 commit 34e0ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-core/src/utils.ts
Expand Up @@ -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
Expand Down

0 comments on commit 34e0ad2

Please sign in to comment.