Trace source of atom updates #169
kevinschaich
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discussed in #135, original issue #130
Originally posted by kevinschaich April 11, 2024
When your state becomes large enough, effects tend to overlap – especially in applications with a lot of visual/input interactions (mouse movement, tracking positions of elements on the screen, dragging and dropping, etc). This can lead to render loops that can be hard to track down. If you have 10 buttons/sliders/keyboard shortcuts that all perform the same state update, it's really time consuming to figure out which one of them is causing issues.
Redux devtools has a nice feature that lets you "trace" the source of updates:
I think this would be a nice addition to the devtools, perhaps in the Time Travel tab behind a (default off) feature flag or setting.
Beta Was this translation helpful? Give feedback.
All reactions