Hello everyone,
I have a few questions regarding Kotlin and dependency injection with MVVM.
A bit of background, I made a simple jetpack compose android app that took in an input, fetched some data from an API and then presented that data.
Now, when I did that I didn't follow any architecture design and so my code was basically not pretty and hard to navigate within.
That's when I read about MVVM and to separate UI, logic and business aspects from each other.
Which brings me:
How would I go about making the request when a new composable is navigated to from navcontroller? (Something like onLaunch?)
How can I then pass the new created data class to a different composable? (Currently the data can be accessed through a global but is that the proper way?)