Skip to content

Commit 5d3e605

Browse files
committed
swap examples
1 parent 78b7033 commit 5d3e605

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/migrations/1.x-to-2.x.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -666,19 +666,7 @@ if (todoAdded.match(unknownAction)) {
666666

667667
For compatibility, this override is still in place, but we encourage considering using either of the static properties for more understandable code.
668668

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`:
682670

683671
```ts
684672
// before (works in runtime, will not filter types properly)
@@ -698,6 +686,18 @@ const epic = (action$: Observable<Action>) =>
698686
)
699687
```
700688

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+
701701
## Future plans
702702

703703
### Custom slice reducer creators

0 commit comments

Comments
 (0)