5

The Redux Dev Tools shows a certain amount of dispatched actions for the time travel feature - is there a way to increase that default amount?

Gambit2007
  • 3,260
  • 13
  • 46
  • 86

1 Answers1

10

You can use maxAge option:

number (>1) - maximum allowed actions to be stored in the history tree. The oldest actions are removed once maxAge is reached. It's critical for performance. Default is 50.

E.g.

window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ maxAge: 5 });

Switch to the redux dev tools tab. There are always only five action histories.

enter image description here

Or, you can set this option in the redux dev tools browser extension.

The option: Limit the action history to xx items.

enter image description here

Lin Du
  • 88,126
  • 95
  • 281
  • 483