react/packages/use-sync-external-store
Douglas Armstrong e12a9dfc96
Fix production-only updateSyncExternalStore() crash when doing setState in render (#23150)
* Update ReactFiberHooks.new.js

* Add regression test + replace-fork

* Prettier

Co-authored-by: Dan Abramov <dan.abramov@me.com>
2022-01-20 15:22:17 +00:00
..
npm Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
shim Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
src Fix production-only updateSyncExternalStore() crash when doing setState in render (#23150) 2022-01-20 15:22:17 +00:00
README.md Set up use-sync-external-store package (#22202) 2021-08-28 13:57:47 -07:00
index.js Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
package.json Don't override use-sync-external-store peerDeps (#22882) 2021-12-07 23:26:12 -08:00
with-selector.js Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00

README.md

use-sync-external-store

Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.

Until useSyncExternalStore is documented, refer to https://github.com/reactwg/react-18/discussions/86