Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $clone method to ViewModel instances #372

Open
ascott18 opened this issue Mar 5, 2024 · 0 comments
Open

Add $clone method to ViewModel instances #372

ascott18 opened this issue Mar 5, 2024 · 0 comments

Comments

@ascott18
Copy link
Collaborator

ascott18 commented Mar 5, 2024

A common scenario is to make an editor dialog that operates off a copy of a ViewModel to avoid mutating the page undearneath with edits that might not be saved. A simple way to clone a ViewModel, including data properties, dirty state, $params, and possibly other things would be useful for this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant