Commit 79c6863
fix: createAction should adhere to doc contract regarding errors (#75)
Specifically, the documentation states the following:
> If the payload is an instance of an Error object, redux-actions will automatically set action.error to true.
This implies that, irrespective of the arguments provided to `createAction`, if the resulting `payload` is an Error object then the `action.error` property should be set to true.
This just changes that check to ensure it is performed as stated in the docs.1 parent 6597603 commit 79c6863
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments