-
Hello, I want to update the data of Parent State when I tap a button on the child view. And the child view has its own State, Action and Reducer. How could I do it? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
maksimn
Sep 4, 2023
Replies: 1 comment 2 replies
-
Hello, @jerryga
And these Parent and Child are tied in the common
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jerryga
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, @jerryga
You do not need to send an action from child to parent. Child state and child action are parts of parent state and parent action by definition:
And these Parent and Child are tied in the common
Store
. So, the child actions can be handled in theParent
reducer the same way as its own actions: