jotaijs/jotai-devtools

[Feature Request] Trace source of atom updates

Closed this issue · 0 comments

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:

Trace feature

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.