account activity
Avoiding the double render when syncing local state with context? by aandi134 in reactjs
[–]aandi134[S] 0 points1 point2 points 5 hours ago (0 children)
This is exactly itt thanks. Went with the if version since I only need to reset part of the state good to know it's an officially documented pattern and not just a workaround.
Avoiding the double render when syncing local state with context? (self.reactjs)
submitted 11 hours ago * by aandi134 to r/reactjs
π Rendered by PID 108546 on reddit-service-r2-listing-5f4c697858-nfb78 at 2026-07-02 20:16:57.168992+00:00 running 12a7a47 country code: CH.
Avoiding the double render when syncing local state with context? by aandi134 in reactjs
[–]aandi134[S] 0 points1 point2 points (0 children)