@sanity/ui
Advanced tools
Comparing version 2.1.15-canary.1 to 2.1.15-canary.2
{ | ||
"name": "@sanity/ui", | ||
"version": "2.1.15-canary.1", | ||
"version": "2.1.15-canary.2", | ||
"keywords": [ | ||
@@ -96,3 +96,3 @@ "sanity", | ||
"@juggle/resize-observer": "^3.4.0", | ||
"@sanity/pkg-utils": "6.8.19-canary.1", | ||
"@sanity/pkg-utils": "6.8.20-canary.0", | ||
"@sanity/semantic-release-preset": "^4.1.7", | ||
@@ -99,0 +99,0 @@ "@sanity/ui-workshop": "^2.0.13", |
@@ -15,12 +15,3 @@ import {useMemo} from 'react' | ||
): T[] { | ||
// JSON.stringify is fast, but it's not faster than useMemo's referencial equality check | ||
const __perf_hash__ = useMemo(() => JSON.stringify(val ?? defaultVal), [defaultVal, val]) | ||
return useMemo( | ||
() => _getArrayProp(val, defaultVal), | ||
// Improve performance: Keep object identify for a given hash of the value | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
[__perf_hash__], | ||
) | ||
return useMemo(() => _getArrayProp(val, defaultVal), [defaultVal, val]) | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5048168
65467