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
Arkadii Ivanov
02/09/2024, 4:17 PM
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
UzMbApps
02/09/2024, 4:32 PM
Aha, thank you very much
👍 1
UzMbApps
02/09/2024, 4:57 PM
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
Arkadii Ivanov
02/09/2024, 5:17 PM
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
UzMbApps
02/09/2024, 5:43 PM
(splash screen) this solution worked 🤩,
thank you again 👌