use-sync-external-store
Advanced tools
Comparing version 1.0.0-rc.0-next-42c30e8b1-20220104 to 1.0.0-rc.0-next-4de99b3ca-20220221
@@ -119,3 +119,5 @@ /** | ||
if (!didWarnUncachedGetSnapshot) { | ||
if (value !== getSnapshot()) { | ||
var cachedValue = getSnapshot(); | ||
if (!objectIs(value, cachedValue)) { | ||
error('The result of getSnapshot should be cached to avoid an infinite loop'); | ||
@@ -122,0 +124,0 @@ |
@@ -119,3 +119,5 @@ /** | ||
if (!didWarnUncachedGetSnapshot) { | ||
if (value !== getSnapshot()) { | ||
var cachedValue = getSnapshot(); | ||
if (!objectIs(value, cachedValue)) { | ||
error('The result of getSnapshot should be cached to avoid an infinite loop'); | ||
@@ -122,0 +124,0 @@ |
{ | ||
"name": "use-sync-external-store", | ||
"description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.", | ||
"version": "1.0.0-rc.0-next-42c30e8b1-20220104", | ||
"version": "1.0.0-rc.0-next-4de99b3ca-20220221", | ||
"repository": { | ||
@@ -13,3 +13,2 @@ "type": "git", | ||
"README.md", | ||
"build-info.json", | ||
"index.js", | ||
@@ -24,4 +23,4 @@ "index.native.js", | ||
"peerDependencies": { | ||
"react": "18.0.0-rc.0-next-42c30e8b1-20220104" | ||
"react": "18.0.0-rc.0-next-4de99b3ca-20220221" | ||
} | ||
} |
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
38055
816