Skip to content

Feature Request: Watch Multiple Model/Components #1

@GAAOPS

Description

@GAAOPS

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions