@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.
@@ -318,7 +318,11 @@ function getGlobalScope() {
318
318
  const globalScope = getGlobalScope();
319
319
  function createGlobalScopedContext(key2, defaultValue) {
320
320
  const symbol = Symbol.for(key2);
321
- return typeof document > "u" ? react.createContext(defaultValue) : (globalScope[symbol] = globalScope[symbol] || react.createContext(defaultValue), globalScope[symbol]);
321
+ if (typeof document > "u") {
322
+ const context = react.createContext(defaultValue);
323
+ return context.displayName = key2, context;
324
+ }
325
+ return globalScope[symbol] = globalScope[symbol] || react.createContext(defaultValue), globalScope[symbol];
322
326
  }
323
327
  const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null);
324
328
  function ThemeProvider(props) {