redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

[Question] How do I undo Commit ?

Open Industrial opened this issue 8 years ago • 3 comments

Hi.

I only have the Sweep and Commit buttons in the Log window and not the Reset button. This means that when I refresh the page that it keeps the state in the devtools and I can't seem to reset this state.

Can I reset it by executing code in the devtools console manually?

gr,

Tom

Industrial avatar Sep 26 '18 12:09 Industrial

The workaround is to call:

store.liftedStore.dispatch({ type: 'RESET' })

In my case (using angular-redux), the store is accessible in the AppModule constructor:

ngRedux._store.liftedStore.dispatch({ type: 'RESET' })

rmorrise avatar Oct 05 '18 18:10 rmorrise

You probably need to select the Log Monitor option from the first dropdown at top. You will find Reset, Revert, Sweep and Commit options there.

shabnam701 avatar Oct 09 '18 07:10 shabnam701

Those buttons are not available in Inspector Monitor, so you'd need Log Monitor for that. For the extension we'll move the buttons outside.

zalmoxisus avatar Nov 29 '18 19:11 zalmoxisus