Also, there's `viewModel()` function for injection...
# compose-desktop
n
Also, there's
viewModel()
function for injection in Android, is there a similar approach in desktop ?
m
Some navigation libraries include a ViewModel-like interface. Voyager(https://github.com/Syer10/voyager) has ScreenModel that acts like a ViewModel and can be integrated with DI's pretty easily. Other Navigation libraries may have something similar