mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
Added docs on Reset / Revert / Sweep / Commit buttons
I didn't understand what these buttons did until I played around with them for a few minutes - I thought some nice documentation on what they do would be needed.
This commit is contained in:
parent
72cd8d0505
commit
01800409fd
10
README.md
10
README.md
|
@ -412,6 +412,16 @@ Try clicking on actions in the log, or changing some code inside the reducers. Y
|
||||||
|
|
||||||
Also try opening `http://localhost:3000/?debug_session=123`, click around, and then refresh. You should see that all actions have been restored from the local storage.
|
Also try opening `http://localhost:3000/?debug_session=123`, click around, and then refresh. You should see that all actions have been restored from the local storage.
|
||||||
|
|
||||||
|
### What do the Reset / Revert / Sweep / Commit buttons do?
|
||||||
|
|
||||||
|
**Sweep** will remove any disabled actions from your log.
|
||||||
|
|
||||||
|
**Commit** works similar to a a git commit - it will remove all actions from your log and make the current state your initial state.
|
||||||
|
|
||||||
|
**Revert** will remove any actions since your last commit.
|
||||||
|
|
||||||
|
**Reset** will remove all actions and bring your store back to it's initial state. This includes actions that have previously been committed.
|
||||||
|
|
||||||
### Custom Monitors
|
### Custom Monitors
|
||||||
|
|
||||||
**DevTools accepts monitor components so you can build a completely custom UI.** [`LogMonitor`](https://github.com/gaearon/redux-devtools-log-monitor) and [`DockMonitor`](https://github.com/gaearon/redux-devtools-dock-monitor) are just examples of what is possible.
|
**DevTools accepts monitor components so you can build a completely custom UI.** [`LogMonitor`](https://github.com/gaearon/redux-devtools-log-monitor) and [`DockMonitor`](https://github.com/gaearon/redux-devtools-dock-monitor) are just examples of what is possible.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user