Closed
Description
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
- React: 18.0.0-alpha-88d121899-20210811
- ReactDOM: 18.0.0-alpha-88d121899-20210811
- Redux: 4.1.1
- React Redux: 7.2.4
What is the current behavior?
When updating the store in an effect outside of a Suspense boundary, hydration mismatches are reported for components reading from the store inside Suspense boundaries.
Warning: Prop `className` did not match. Server: "language-js" Client: "language-ts"
Components reading the store outside of Suspense boundaries issue no hydration mismatches.
<Store>
<Suspense fallback={null}>
<Demo>inside suspense has hydration mismatch</Demo>
</Suspense>
<Demo>outside suspense has no hydration mismatch</Demo>
<UpdatesStore />
</Store>
The codesandbox includes an implementation using React Context as well where no problem is reported.
What is the expected behavior?
No hydration mismatches.
Which browser and OS are affected by this issue?
Chrome 92, Ubuntu 20.04
Did this work in previous versions of React Redux?
- Yes
Metadata
Metadata
Assignees
Labels
No labels