Using a singleton viewmodel in ViewMap #2125
Replies: 1 comment 1 reply
-
Can you give me an idea of why you need a singleton instance? Is it because you're storing state in the ViewModel? Could you move the state in a service and register that stateful service as a singleton in DI? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to use a singleton object for the ViewModel in the ViewMap? In my application i want to have a single Settings ViewModel but not sure how to accomplish that with the Register.Views?
thanks
Beta Was this translation helpful? Give feedback.
All reactions