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
{{ message }}
Repository navigation
How to detect when a dispatched action completes ? #543
I would just like to know if it is possible to detect when an action completes, when using angular-redux. May be something like returning a promise... If yes, a small example will help a lot. Thanks in advance.
Activity
gregkopp commentedon Jan 9, 2019
Whatever is acting on your action (in an Epic, I would assume) should dispatch another action indicating such.
ie.:
Dispatch: DATA_REQUESTED
Epic: Calls API and gets data
Dispatch: DATA_RECEIVED
Your DAT_RECEIVED action can then be handled in your reducer. I have used this method in the past for busy indicators.