Pass state through enum state #1223
Unanswered
JaapWijnen
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following setup but I'm not sure how to pass part of the parent state on to my enum cases.
How can I make sure that changes to
settings
are still propagated whenever the.processing
step part of the state is "active"My reducer:
EDIT:
Ah I think my problem is actually one step higher... I have the following
AppState
above the parent state.So the problem is probably in this part as the settingsState has two instances when the state is in the
.processing
stepI'm still not quite sure how to remove the settings state from processing to make the state tree "pure" (no duplication) and then bolt it back on so that it's available in the ProcessingView/reducer logic etc.
Beta Was this translation helpful? Give feedback.
All reactions