Need Hilt integration for viewModels
Anton111111 opened this issue · comments
Anton Potekhin commented
Need some kind of binding to the life cycle of the screen for the VM. In hilt-navigation used function with param ViewModelStoreOwner. NavBackStackEntry is used as ViewModelStoreOwner.
Vladimir Puris commented
Already done in one of the closed projects, and tested. I'll try to get a PR soon.
Vladimir Puris commented
PR opened
Alex commented
Added in 1.3 with your credits
You can check it here - https://github.com/AlexGladkov/Odyssey/tree/rc/release-1.3.0