Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxHistoryToRetain configuration option #24

Open
dechowdev opened this issue Feb 21, 2017 · 0 comments
Open

maxHistoryToRetain configuration option #24

dechowdev opened this issue Feb 21, 2017 · 0 comments

Comments

@dechowdev
Copy link

I recently reached out to @dtschust in regards to to retaining history state in a production environment.

To quote the readme:

...For an application with heavy actions (such as network requests with large payloads) or very frequent actions, Redux Bug Reporter will gradually take up more and more memory. As such, it's probably a good idea to disable in production by default...

I would love to have a configuration where you could control the amount of state / (state) history saved this way.
A simple configuration of maxHistoryToRetain or a maxActionsToRetain

To quote @dtschust:

... That way as you use the app, redux bug reporter would only keep track of at most N actions, and when you filed a bug you'd be sent the state of the store before those N actions, the actions themselves, and the final state of the store.

In short a way to tighten the knit on the state/action history buckling up in a production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant