You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ForEach(store.scope(state: \.childs, action: \.childs)){ store inChildFeatureView(store: store)}
Is there a way to cherry-pick a specific reducer from that array by its ID? Something like:
iflet store = store.scope(id: childFeatureID, state: \.childs, action: \.childs){ChildFeatureView(store: store)}
Apologies if this is already covered in the docs or a tutorial—I haven’t come across it yet.
Thanks a ton—TCA really makes development smoother and more enjoyable!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I know we can use ForEach to scope over an array of child reducers, like so:
Is there a way to cherry-pick a specific reducer from that array by its ID? Something like:
Apologies if this is already covered in the docs or a tutorial—I haven’t come across it yet.
Thanks a ton—TCA really makes development smoother and more enjoyable!
Beta Was this translation helpful? Give feedback.
All reactions