JSPM

use-sync-external-store

1.6.0-canary-ea05b750-20250408
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15168499
  • Score
    100M100P100Q236304F
  • License MIT

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

Package Exports

  • use-sync-external-store
  • use-sync-external-store/package.json
  • use-sync-external-store/shim
  • use-sync-external-store/shim/index.js
  • use-sync-external-store/shim/index.native
  • use-sync-external-store/shim/index.native.js
  • use-sync-external-store/shim/with-selector
  • use-sync-external-store/shim/with-selector.js
  • use-sync-external-store/with-selector
  • use-sync-external-store/with-selector.js

Readme

use-sync-external-store

Backwards-compatible shim for React.useSyncExternalStore. Works with any React that supports Hooks.

See also https://github.com/reactwg/react-18/discussions/86.