Track route transitions to support time travel debugging
See original GitHub issueOne problem with this addon today is that route transitions are not kept in sync with redux. This quickly becomes a problem if you decide to bolt on time travel debugging and rewind/fast forward. I’m throwing this issue up to help track what’s required and how to approach it in ember.
-
didTransition
spike showing how simple it is to dispatch an event to redux with url and params - verify travel backwards/forwards is supported by the default redux chrome extension
- unlock hot reloading to use in combination with time travel
- discuss if developers will prefer to ‘opt-in’ or if we should add this by default
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:24 (3 by maintainers)
Top Results From Across the Web
Time Travel Debugging - Overview - Windows drivers
Time Travel Debugging is a tool that allows you to capture a trace of your process as it executes and then replay it...
Read more >Debugging operating systems with time-traveling virtual ...
space and time overheads needed to support time travel are reasonable for debugging, and movements in time are fast enough to support interactive...
Read more >Redux DevTools: Tips and tricks for faster debugging
Time travel is one of the most powerful features of Redux DevTools, it allows us to see how our app's state has reached...
Read more >Time travel debugging - Wikipedia
Time travel debugging or time traveling debugging is the process of stepping back in time through source code to understand what is happening...
Read more >6 Things You Need to Know About Time Travel Debugging
Time travel debugging (aka reverse debugging) enables developers to record all program activities at runtime (every memory access, every computation, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve been working with @MiguelMadero on a hot reloader for ember-cli and we’ve got a very basic proof of concept going now (90% of the hard work and brains behind it was Miguel)
Here is a quick demo to show it in action with ember-redux
I was able to spike this out with only 1 reducer and a few lines of code in the
didTransition
of the ember router itself (not terrible actually).https://github.com/toranb/ember-redux-ddau-example/commit/76dfce3956a508724ed958142e2fe4bc85167d5a
The behavior is like you suggest - it will fire any async actions on the route you transition “back to” but in practice I found you can just toggle it off and continue going in rewind mode 😃
Here is what time travel looks like using the code above (seems identical to what I get with
react-router-redux
today.