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 (#7029)

Co-authored-by: Dominik Dorfmeister <[email protected]>
  • Loading branch information
saul-atomrigs and TkDodo authored Mar 12, 2024
1 parent 7f27e25 commit 78ace08
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 78ace08

Please sign in to comment.