Redux Dev Tools - show more dispatched actions?
Asked Answered
L

1

6

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?

Lumber answered 16/12, 2021 at 16:47 Comment(0)
A
11

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

Aguirre answered 17/12, 2021 at 1:48 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.