Effects with completions #3711
dankinsoid
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
@dankinsoid I'm not sure how this would work in practice. Currently, all state mutations happen in the body of the reducer given some action. Because the mutations in your snippet aren't tied to any action or the body of the reducer, I'm not sure I understand how it could be compatible with TCA's testing/debugging tools. I do agree that some of the ping-ponging of feature state and effects today are annoying, and we do have some plans to make it less annoying in the future, but I think you'd need to sketch your idea out a bit more for us to have a clear idea of how it would work in practice. |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I found it useful to add completions to effects, where completions itself are small reducers:
and even more, they could optionally return new effects:
Beta Was this translation helpful? Give feedback.
All reactions