Fixed
Status Update
Comments
il...@google.com <il...@google.com>
mg...@google.com <mg...@google.com>
ap...@google.com <ap...@google.com> #2
I have the same issue.
il...@google.com <il...@google.com>
pr...@google.com <pr...@google.com> #3
Here too!
he...@reaktor.com <he...@reaktor.com> #4
+1
il...@google.com <il...@google.com> #5
the same for Java buildSrc
ha...@gmail.com <ha...@gmail.com> #6
Same here
Description
When using Compose navigation, calls to navigate should be guarded by lifecycle state to prevent invoking navigation methods while composable is transitioning as an effect of navigation. Given navigation destination:
navigation calls should be guarded by
backStackEntry
lifecycle state to prevent invoking navigation from composable that's under transition:It would be really useful to have a set of lifecycle aware function wrappers for guarding execution of calls, for example:
or standalone composable version which will use
LocalLifecycleOwner
to access lifecycle state: