@sanity/ui 3.0.9 → 3.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -324,7 +324,11 @@ function getGlobalScope() {
324
324
  const globalScope = getGlobalScope();
325
325
  function createGlobalScopedContext(key2, defaultValue) {
326
326
  const symbol = Symbol.for(key2);
327
- return typeof document > "u" ? createContext(defaultValue) : (globalScope[symbol] = globalScope[symbol] || createContext(defaultValue), globalScope[symbol]);
327
+ if (typeof document > "u") {
328
+ const context = createContext(defaultValue);
329
+ return context.displayName = key2, context;
330
+ }
331
+ return globalScope[symbol] = globalScope[symbol] || createContext(defaultValue), globalScope[symbol];
328
332
  }
329
333
  const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null);
330
334
  function ThemeProvider(props) {