Replies: 2 comments 1 reply
-
How about an action on 'onAppear' |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think I found how to solve this: ATAppInitialization(
store: self.store.scope(
state: { store in
var state = store.initialization
state.accountId = sceneSession?.accountId
return state
},
action: ATAppFeature.Action.showInitialization
)
) |
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.
-
Hey guys, I would appreciate some help here. I have the following code (redacted for simplicity):
And when I initialize the ATAppInitialization reducer, I would like to pass a param (
accountId
). But the state is predefined in theATAppFeature.State
. Creating directly doesn't help. So I wonder how can I inject that value during the scoping of the store, or maybe somewhere else?Beta Was this translation helpful? Give feedback.
All reactions