@sanity/ui 4.0.0-static.32 → 4.0.0-static.33

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "4.0.0-static.32",
3
+ "version": "4.0.0-static.33",
4
4
  "keywords": [
5
5
  "react",
6
6
  "ui",
@@ -25,7 +25,9 @@ export function createGlobalScopedContext<ContextType, const T extends ContextTy
25
25
  * Prevent errors about re-renders on React SSR on Next.js App Router
26
26
  */
27
27
  if (typeof document === 'undefined') {
28
- return createContext<ContextType>(defaultValue)
28
+ const context = createContext<ContextType>(defaultValue)
29
+ context.displayName = key
30
+ return context
29
31
  }
30
32
 
31
33
  // Use the global scope as a map of symbols to contexts