Update dependency react-redux to v9.0.4 #121
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: procyon/seedling#121
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "renovate/react-redux-9.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
9.0.2
->9.0.4
Release Notes
reduxjs/react-redux (react-redux)
v9.0.4
Compare Source
This bugfix release updates the React Native peer dependency to be
>= 0.69
, to better reflect the need for React 18 compat and (hopefully) resolve issues with thenpm
package manager throwing peer dep errors on install.What's Changed
Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4
v9.0.3
Compare Source
This bugfix release drops the ReactDOM / React Native specific use of render batching, as React 18 now automatically batches, and updates the React types dependencies
Changelog
Batching Dependency Updates
React-Redux has long depended on React's
unstable_batchedUpdates
API to help batch renders queued by Redux updates. It also re-exported that method as a util namedbatch
.However, React 18 now auto-batches all queued renders in the same event loop tick, so
unstable_batchedUpdates
is effectively a no-op.Using
unstable_batchedUpdates
has always been a pain point, because it's exported by the renderer package (ReactDOM or React Native), rather than the corereact
package. Our prior implementation relied on having separatebatch.ts
andbatch.native.ts
files in the codebase, and expecting React Native's bundler to find the right transpiled file at app build time. Now that we're pre-bundling artifacts in React-Redux v9, that approach has become a problem.Given that React 18 already batches by default, there's no further need to continue using
unstable_batchedUpdates
internally, so we've removed our use of that and simplified the internals.We still export a
batch
method, but it's effectively a no-op that just immediately runs the given callback, and we've marked it as@deprecated
.We've also updated the build artifacts and packaging, as there's no longer a need for an
alternate-renderers
entry point that omits batching, or a separate artifact that imports from"react-native"
.What's Changed
batch
by @markerikson in https://github.com/reduxjs/react-redux/pull/2104@types/react-dom
and lower@types/react
to min needed by @markerikson in https://github.com/reduxjs/react-redux/pull/2105Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.2...v9.0.3
This PR has been generated by Renovate Bot.
Update dependency react-redux to v9.0.3to Update dependency react-redux to v9.0.4130d64ca6f
to4e1e96a662