xaviergonz / mobx-keystone

A MobX powered state management solution based on data trees with first class support for Typescript, support for snapshots, patches and much more

Home Page:https://mobx-keystone.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Limit Undo Levels with undoMiddleware in mobx-keystone?

wangzhewudiya opened this issue · comments

I am writing to inquire about the undoMiddleware feature in your library. Specifically, I am wondering how to limit the number of undo levels that are available.

Could you please provide guidance on how to limit the number of undo levels using the undoMiddleware feature? I am having difficulty finding information on this in the documentation and would appreciate any assistance you can provide.

Thank you for your time and for your work on this valuable library.

I just released 1.5.0 with maxUndoLevels/maxRedoLevels options for undoMiddleware