You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a presenter at the InitialScreen level, and I have a CircuitContent as ChildPresenter in a view that is inside the InitialScreen, How can I navigate InitialScreen to another screen while the code in the ChildPresenter is used for navigation?
I tried adding a navEvent argument to the inner CircuitContent but this causes the ChildPresenter to be called multiple times (makes it unstable?) and messes up some API calls.
but having Timber.i("child.present(%s), screen=%s", this, screen) inside the present() function of the ChildPresenter shows that it gets called with different object hashes, If I remove the onNavEvent everything works fine but my event is not picked up
This discussion was converted from issue #1530 on July 23, 2024 17:36.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have read the docs about nested navigation and looked at samples folder, but could not find an answer to the following issue I am facing:
Let's say I have the following code on the top level of my layout:
If I have a presenter at the
InitialScreen
level, and I have aCircuitContent
as ChildPresenter in a view that is inside theInitialScreen
, How can I navigate InitialScreen to another screen while the code in the ChildPresenter is used for navigation?I tried adding a
navEvent
argument to the innerCircuitContent
but this causes the ChildPresenter to be called multiple times (makes it unstable?) and messes up some API calls.This is how the child content is structured:
Compose compiler report shows that this is stable:
but having
Timber.i("child.present(%s), screen=%s", this, screen)
inside the present() function of the ChildPresenter shows that it gets called with different object hashes, If I remove theonNavEvent
everything works fine but my event is not picked upBeta Was this translation helpful? Give feedback.
All reactions