Replies: 1 comment
-
Hi @CJiu01, this kind of far reaching communication between features can still be done with Notification Center if you want. The child feature posts a notification and the parent feature listens for notifications inside a long-living effect. While we don't have a case study for this exact situation (that of logging out), we do have a case study for interacting with notifications: This case study puts a dependency in front of the Notification Center: But you could also use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m currently working on a logic where clicking the logout button in the settings view transitions the user to the login view. When the .logoutButtonTapped case is executed, I want to change the appReducer state to loggedOut. However, since setting and login are not in a parent-child relationship, I’m unsure how to pass the action between them.
Can you help me figure out how to achieve this?
Code
SettingReducer
AppReducer
AppView
Beta Was this translation helpful? Give feedback.
All reactions