I’m thinking about how to add a global undo to our app that we’re slowly incrementalising using bonsai. Has anyone got a working pattern for implementing a global undo in a Bonsai app made of multiple composed state machines?
Our current undo setup just takes snapshots of the entire model and resets the global model state to a previous state. When we have an incrementalised app built from several state machines, however, it doesn’t seem like we have access to snapshots of the global state, and we certainly can’t set global state.