A "Time Machine"-ish UI in a redux devtools monitor
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
.gitignore
README.md
package.json
webpack.config.js

README.md

redux-devtools-time-machine

Totally impractical, but hugely fun!

DISCLAIMER: I've not yet tried this on any app but the included Counter app. Currently, this monitor renders the app for each computed state. If you lock up your browser, or other weird stuff happens, you have been warned.

I also haven't bothered to make the CSS work for non-Chrome, so it will likely only look correct in Chrome, if that.

Demo

Controls

Click the TARDIS to engage or disengage time travel.

Use the arrows to travel along your app's timeline.

Click restore to jump back to the currently viewed state.

Keyboard Shortcuts

Press ctrl-T to toggle the TARDIS

Use the arrow keys (up/down) to move through time.

Pressing shift+up or shift+down will jump to the first/last states.

Press meta-Enter (cmd-Enter on a Mac) to restore the currently viewed state.

Demo

View Demo

Usage

There's no package in npm at the moment. But if you really want to try this on your app, just include TimeMachineMonitor and treat is as you would any monitor.

There is one special prop you should pass to the monitor when you call createDevTools, and that is the redux container you wish to monitor/render. i.e:

// AppContainer is a connected component
const DevTools = createDevTools(<TimeMachineMonitor component={AppContainer}/>);