question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Track route transitions to support time travel debugging

See original GitHub issue

One 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:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:24 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
toranbcommented, Aug 2, 2016

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

hotreload

4reactions
toranbcommented, May 1, 2016

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.

timetravelwithrouting

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found