diff --git a/packages/react-async/src/globalScope.ts b/packages/react-async/src/globalScope.ts index 8fd3ffbd..798b4d78 100644 --- a/packages/react-async/src/globalScope.ts +++ b/packages/react-async/src/globalScope.ts @@ -13,7 +13,7 @@ declare type GlobalScope = { const globalScope = (() => { if (typeof self === "object" && self.self === self) return self if (typeof global === "object" && global.global === global) return global - if (typeof global === "object" && global.GLOBAL === global) return global + if (typeof global === "object" && global["GLOBAL"] === global) return global return {} // fallback that relies on imported modules to be singletons })() as GlobalScope