JSPM

use-sync-external-store

1.3.0-next-7028ce745-20220907
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16595864
  • Score
    100M100P100Q230217F
  • 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/index.js
  • use-sync-external-store/shim
  • use-sync-external-store/shim/index
  • use-sync-external-store/shim/index.js
  • 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

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (use-sync-external-store) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.