3 ms·
This we agree on. But if you're doing your async stuff in your store, is this where you want to create your "setErrorAction", essentially creating actions insid
by Kjeldahl 12y ago
This we agree on. But if you're doing your async stuff in your store, is this where you want to create your "setErrorAction", essentially creating actions inside your stores? The times I've done this it has ended painfully, and that pain went away if I kept these kind of state updates in actions.
- kriswallsmith 12y agoYes, the error action creator would be called from inside the store, which would in turn call handleServerAction. You may have been attempting to dispatch an action inside of an action, which isn't allowed. I hit that wall a few times.
- Kjeldahl 12y agoYou're right, I'm wrong. An cycle needs to complete before another action can be dispatched (against the same store I believe). I think I need some rest. :-)