This alpha preview release updates our React dependencies to the latest React 18 alpha versions, updates the internal usages of useSyncExternalStore
to match those alpha changes, and changes the peerDependencies
to specifically require React 18 alpha or beta versions.
npm i react-redux@next
yarn add react-redux@next
Changelog
React 18 Alpha Updates
Since the previous React-Redux alpha, several more React 18 alpha versions have been released, some with meaningful changes. The useSyncExternalStore
API has been promoted from the React "experimental" builds to the "alpha" channel, and the shim package's exports layout has been changed.
This release updates our internals to specifically import useSyncExternalStore
from React itself. This means that starting with this release, React-Redux v8 requires a recent React 18 alpha/beta release that contains that API!
We'd appreciate folks trying this out with recent React builds and giving us feedback in the related issue:
Investigation: try out React-Redux v7 / v8 with React 18 alpha
What's Changed
- Update to latest React 18 alpha dependencies by @markerikson in #1834
Full Changelog: v8.0.0-alpha.0...v8.0.0-alpha.1