Seeking help with child features in a navigation stack #3516
holzerryan
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I have a Navigation stack with the path enum set up in a parent feature. The parent feature controls 2 levels of views being added to the stack. Here is my question...how do I trigger an action in a child feature from the parent feature? I can successfully handle the action in one child feature...but then I want to trigger an action once that child feature is popped from the stack.
My parent feature with the navigation stack includes the Path enum
The parent adds the Select Client screen to the stack.
The select client screen includes a button to create a new client. The create client screen is added to the stack.
Once the new client is created, I want to remove that screen from the stack and tell the select client screen to
use the new client.
The parent reducer looks like this...but I cannot figure out the syntax for triggering an action in the selectClient feature after a new client is created.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions