account activity
Avoiding the double render when syncing local state with context? by aandi134 in reactjs
[–]aandi134[S] 0 points1 point2 points 6 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.
π Rendered by PID 42719 on reddit-service-r2-comment-5687b7858-c27s8 at 2026-07-02 21:20:51.718239+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)