-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello, I want to know is there any way to watch multiple view model trough one Undomanager instance?
I have already tried this:
vm1={....}, vm2={....}
undoVM={v1:vm1,v2:vm2}
is there any other way?
is there anyway to change watched model after UndoManager instantiated? I mean you have:
var undoRedoStack = ko.undoManager(viewModel, { ....});
viewModel.undo = undoRedoStack.undoCommand;
viewModel.redo = undoRedoStack.redoCommand;
now i want to change/swap out viewmodel or even watch multiple viewmodel.
Is there anyway to do that?
Some more question: Is there any issues with memory leak and performance. For example if my viewmodel has an array of Objects containing more than 2000 instances?
Thanks a lot
Metadata
Metadata
Assignees
Labels
No labels