Socket
Socket
Sign inDemoInstall

use-sync-external-store

Package Overview
Dependencies
Maintainers
1
Versions
1359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-sync-external-store - npm Package Compare versions

Comparing version 1.0.0-rc.0-next-848e802d2-20220204 to 1.0.0-rc.0-next-8c4cd65cf-20220224

4

cjs/use-sync-external-store-shim.development.js

@@ -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-848e802d2-20220204",
"version": "1.0.0-rc.0-next-8c4cd65cf-20220224",
"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-848e802d2-20220204"
"react": "18.0.0-rc.0-next-8c4cd65cf-20220224"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc