Description
React 18 is now available as preview alpha releases (per https://reactjs.org/blog/2021/06/08/the-plan-for-react-18.html ).
The React team has put together a Working Group discussion forum to describe the changes in React 18 in more detail: https://github.com/reactwg/react-18/discussions
Looking at that forum, there's several issues that may be relevant to React-Redux in some way:
- Overviews:
- Behavior changes:
I'd like to have some folks start trying out React-Redux v7 with React 18 alpha, and report any interesting findings. We could potentially use some of the example apps from the Redux tutorials, and any of the example CodeSandboxes linked in our docs.
You would need to:
- Switch the React version to one of the React 18 alphas, and update the app to use
React.createRoot()
per instructions - Try out the app
- Hand-inspect the behavior to see if anything seems unexpected
We're interested in seeing examples and comparisons with both connect
and useSelector
.
It would also be worth cloning the React-Redux repo, and updating our React devDep to run our tests against the alphas.
The React team has reported that a brief test of a couple Redux-based apps combined with createRoot + StrictMode
did not appear to be working correctly - in particular, no re-rendering happening despite actions being dispatched.
It's very possible that Strict Effects running effects callbacks more than once is causing problems with subscriptions.
We'd appreciate any feedback reports!
Please provide this info:
- Details on the example app used
- Link to updated source code / CodeSandbox if possible
- Description of observed behavior, good or bad ("works okay", "clicking button X doesn't update the UI", etc)