Hello Arkadii, I was thinking about something. Whe...
# decompose
u
Hello Arkadii, I was thinking about something. Where (signedIn or signedOut ) should the navigation control be? there are 2 kinds of cases (compose multiplatform project)
a
From my point of view, the second option (initialConfiguration) is the right way. The
childFactory
function should just switch the provided configuration and create new child instances.
u
Aha, thank you very much
👍 1
When AppRootComponentImpl is first opened, the viewmodel defaults to "null", When _signedInStatus in viewmodel is set to true, the navigation is already opened with the default null value. What is the solution to this situation?
a
You can show a loading (splash) screen first, and subscribe to signedInStatus in the component. Then on result, show one or another component.
👍 1
u
(splash screen) this solution worked 🤩, thank you again 👌
🎉 1