Ability to set history length externally
Closed this issue · 2 comments
nhunzaker commented
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)
nhunzaker commented
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.