-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Description
What problem does this feature solve?
The "subscribeAction.after" is not run if an action throws an error.
What does the proposed API look like?
I propose to add one more property for catching errors in actions:
const waitPlugin = (store) => {
store.subscribeAction({
before: (action) => {
console.log(action.type);
},
after: (action) => {
console.log(action.type);
},
error: (action, error) => {
console.log(action.type);
}
});
};
n3ps, arturs-buls, nevmn, evgeniy-legkun, milesingrams and 5 more
Metadata
Metadata
Assignees
Labels
No labels