From 2f2a64a502387ab5f78986fc65d1ef87f364d63b Mon Sep 17 00:00:00 2001 From: Saul Lee Date: Tue, 5 Mar 2024 16:57:29 +0900 Subject: [PATCH] fix(query-core): Replace the deprecated 'window' with 'globalThis' for Deno --- packages/query-core/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/query-core/src/utils.ts b/packages/query-core/src/utils.ts index 91af0759c1..cab850308c 100644 --- a/packages/query-core/src/utils.ts +++ b/packages/query-core/src/utils.ts @@ -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