Replies: 1 comment
-
Can you be more specific? For example, what is "a Circuit object" in this context? Circuit's In general it would be easier to help you can be more specific about your issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering if anyone has experience using circuit in an older application that relies on fragments containing Compose views along with ViewModels. I would like to gradually refactor the codebase, but I haven't found any samples that cover this specific scenario.
Currently, I'm using Jetpack Navigation (non-Compose) for navigation, which I plan to migrate away from in the final step of the refactoring process.
I tried creating a Circuit object inside a fragment, but there doesn't seem to be a way to retain it across navigation steps. As a result, the entire state is lost and recreated each time.
#Edit
I just checked that the circuit works on a similar principle to the molecule library, switching from that to circuit seems to be a much better for incremental refactoring. Am I thinking correctly?
Beta Was this translation helpful? Give feedback.
All reactions