I'm trying out the time travel feature (super cool...
# mvikotlin
l
I'm trying out the time travel feature (super cool!) with the Todo app (from the compose-jb repo), it will only work on the active component/screen right? It's not replaying the navigation from the user input? e.g.: in the demo video I typed some stuff on the main screen, then go into the edit screen edit the entry and return back to the main screen. When replaying, it seems like the app state is manipulated correctly even though the Ui stays on the TodoMainUi
a
Yeah, the navigation is debuggable with time travel only if it's part of a
Store
state. This is not the case in all the examples I'm aware of, the navigation is handled by another things, like Routers, Fragments, etc. So a general rule of thumb is to use time travel on a single screen. That is a trade off for componentization/separation of concerns/etc.
👍 1