First of all: thanks for this fine application architecture!
I have copied the architectural approach for my project (a Virtual Run App similar to Zwift) and everything runs fine, except for one thing: I noticed that when navigating to a different screen the start screen is recomposed even though it is not visible.
Since I'm an absolute newbie in Kotlin/Koin/Compose/Navigation (but experienced Linux kernel programmer), I checked to see if this issue also is present in the "master" code.
If I add 'Log.d' calls to 'AppNavigation.kt`, and start the app, then the logs show:
So navigation to user wycats is invoking the USERS screen again before calling REPOS twice.
Also when going back, the sequence also seems strange: REPOS again and then USERS twice.
And of course, as the screen is recomposed, all composables down the tree are also recomposed.
This does not seem right...
Thanks in advance,
Ewald
First of all: thanks for this fine application architecture!
I have copied the architectural approach for my project (a Virtual Run App similar to Zwift) and everything runs fine, except for one thing: I noticed that when navigating to a different screen the start screen is recomposed even though it is not visible. Since I'm an absolute newbie in Kotlin/Koin/Compose/Navigation (but experienced Linux kernel programmer), I checked to see if this issue also is present in the "master" code.
If I add 'Log.d' calls to 'AppNavigation.kt`, and start the app, then the logs show:
So navigation to user
wycats
is invoking the USERS screen again before calling REPOS twice. Also when going back, the sequence also seems strange: REPOS again and then USERS twice. And of course, as the screen is recomposed, all composables down the tree are also recomposed.This does not seem right... Thanks in advance, Ewald