File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -666,19 +666,7 @@ if (todoAdded.match(unknownAction)) {
666
666
667
667
For compatibility, this override is still in place, but we encourage considering using either of the static properties for more understandable code.
668
668
669
- For example, with ` redux-saga ` :
670
-
671
- ``` ts
672
- // before (still works)
673
- yield takeEvery (todoAdded , saga )
674
-
675
- // consider
676
- yield takeEvery (todoAdded .match , saga )
677
- // or
678
- yield takeEvery (todoAdded .type , saga )
679
- ```
680
-
681
- With ` redux-observable ` :
669
+ For example, with ` redux-observable ` :
682
670
683
671
``` ts
684
672
// before (works in runtime, will not filter types properly)
@@ -698,6 +686,18 @@ const epic = (action$: Observable<Action>) =>
698
686
)
699
687
```
700
688
689
+ With ` redux-saga ` :
690
+
691
+ ``` ts
692
+ // before (still works)
693
+ yield takeEvery (todoAdded , saga )
694
+
695
+ // consider
696
+ yield takeEvery (todoAdded .match , saga )
697
+ // or
698
+ yield takeEvery (todoAdded .type , saga )
699
+ ```
700
+
701
701
## Future plans
702
702
703
703
### Custom slice reducer creators
You can’t perform that action at this time.
0 commit comments