Skip to content

Commit

Permalink
fix(query-core): Replace the deprecated 'window' with 'globalThis' fo…
Browse files Browse the repository at this point in the history
…r Deno
  • Loading branch information
saul-atomrigs committed Mar 5, 2024
1 parent 5e7b273 commit 2f2a64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export type QueryTypeFilter = 'all' | 'active' | 'inactive'

// UTILS

export const isServer = typeof window === 'undefined' || 'Deno' in window
export const isServer = typeof window === 'undefined' || 'Deno' in globalThis

export function noop(): undefined {
return undefined
Expand Down

0 comments on commit 2f2a64a

Please sign in to comment.