vigetlabs/microcosm

Ability to set history length externally

Closed this issue · 2 comments

For the dev tools, I want to allow a user to not have to worry about adding maxHistory: Infinity when in development mode. It would be great if there was a way to adjust the settings of the history object externally, like:

repo.history.setLimit(Infinity)

@prayasht think you might able to tackle this one?

We just need to update this field:

https://github.com/vigetlabs/microcosm/blob/master/src/history.js#L26

This assignment could probably be moved into a method.