This rule ensures that all redux-saga
effects are properly yield
'ed.
Not yield
'ing an effect might result in strange control flow behaviour.
import { take } from "redux-saga"
// good
function* good() {
yield take("action")
}
// bad
function* bad() {
take("action")
}
Note: There is no autofix for this rule since it would change the runtime behavior of the code and potentially break things. This would goes against the eslint best practices for fixes. If you use an editor that supports the eslint suggestions API, however, (for example the VSCode ESLint plugin), the editor will provide a suggestion for how to fix it.