:wave: Hey team, I'm looking into alternatives to ...
# appyx
d
👋 Hey team, I'm looking into alternatives to compose navigation. The samples look great visually. Just watched this talk - https://www.droidcon.com/2022/11/15/model-driven-navigation-with-appyx-from-zero-to-hero/ QQ: 1. I rely on
savedStateHandle
to retrieve data within a ViewModel. What is the appyx way to do it? 2. How do I scope VMs to a certain node path?
z
Hey @Devesh Shetty! Appyx provides
RetainedInstanceStore
with which your objects (
ViewModel
) can be scoped to a
Node
and also survive configuration changes. I’m working on an updated documentation just now, will try to make a PR very soon.
The documentation update is out now. Here you can find our stance on ViewModel: https://bumble-tech.github.io/appyx/navigation/integrations/viewmodel/ And here you can find our approach to surviving configuration changes: https://bumble-tech.github.io/appyx/navigation/features/configuration/ Let me know if this is useful, or if you have any further questions! After discussion with the team I can say we want to come back to the topic of ViewModel soon. We should provide more samples and also see if we could/should merge any of the open proposals or provide support for them a different way.
d
Thank you @Zsolt! This is what I was looking for. I will try it out over the weekend
👌 1