Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-sync-external-store

Package Overview
Dependencies
Maintainers
1
Versions
1436
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 0.0.0-experimental-c7917fe76-20211206 to 0.0.0-experimental-c7e494b55-20220503

7

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

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-shim.development.js

@@ -118,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');

@@ -121,0 +124,0 @@

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-shim.native.development.js

@@ -118,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');

@@ -121,0 +124,0 @@

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-shim.native.production.min.js

@@ -3,0 +4,0 @@ *

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-shim.production.min.js

@@ -3,0 +4,0 @@ *

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-shim/with-selector.development.js

@@ -3,0 +4,0 @@ *

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js

@@ -3,0 +4,0 @@ *

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-with-selector.development.js

@@ -3,0 +4,0 @@ *

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store-with-selector.production.min.js

@@ -3,0 +4,0 @@ *

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store.development.js

@@ -3,0 +4,0 @@ *

@@ -1,2 +0,3 @@

/** @license React vundefined
/**
* @license React
* use-sync-external-store.production.min.js

@@ -3,0 +4,0 @@ *

{
"name": "use-sync-external-store",
"description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.",
"version": "0.0.0-experimental-c7917fe76-20211206",
"version": "0.0.0-experimental-c7e494b55-20220503",
"repository": {

@@ -13,3 +13,2 @@ "type": "git",

"README.md",
"build-info.json",
"index.js",

@@ -24,4 +23,4 @@ "index.native.js",

"peerDependencies": {
"react": "0.0.0-experimental-c7917fe76-20211206"
"react": "0.0.0-experimental-c7e494b55-20220503"
}
}
# use-sync-external-store
Backwards compatible shim for React's `useSyncExternalStore`. Works with any React that supports hooks.
Backwards-compatible shim for [`React.useSyncExternalStore`](https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore). Works with any React that supports Hooks.
Until `useSyncExternalStore` is documented, refer to https://github.com/reactwg/react-18/discussions/86
See also https://github.com/reactwg/react-18/discussions/86.
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