Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Reducer Sets Wrong State When React's Strict Mode is Enabled - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
currenthandle
Reducer Sets Wrong State When React's Strict Mode is Enabled
Anyone know what
's going on with my reducer
?
https://stackoverflow.com/questions/74463125/reducer-sets-wrong-state-when-reacts-strict-mode-is-enabled
Stack Overflow
Reducer Sets Wrong State When React's Strict Mode is Enabled
The newly updated state object returned from my reducer is wrong when I have reactStrictMode
: true in mynext
.config
.mjs
. Rather than rendering once
, the component renders twice
. The updated state o
.
.
.
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
React Strict Mode - Second render, different initial state ?
TTC
Theo's Typesafe Cult / questions
3y ago
what is a string key react's state management library?
TTC
Theo's Typesafe Cult / questions
4y ago
useQuery enabled depending on login state
TTC
Theo's Typesafe Cult / questions
3y ago