@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
|
@@ -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
|
-
|
|
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
|