What is the "right" way to make a viewModel scoped...
# koin
j
What is the "right" way to make a viewModel scoped to a nested navigation graph? (compose multiplatform)
Copy code
simplified graph here
└── app_graph
    ├── login_registration_graph
    │   └── destinationLogin
    └── logged_in_graph
        ├── destination1
        └── destination2
I want viewModels for destination1 and destination2, which are scoped to the graph itself, and not the individual destinations, and isn't recreated until you effectively log out.