Skip to content

Files

Latest commit

 

History

History
25 lines (17 loc) · 363 Bytes

yield-effects.md

File metadata and controls

25 lines (17 loc) · 363 Bytes

Pattern: Effect is not yielded

Issue: -

Description

This rule ensures that all redux-saga effects are properly yield'ed.

Not yield'ing an effect might result in strange control flow behaviour.

Examples

import { take } from "redux-saga"

// good
function* good() {
  yield take("action")
}

// bad
function* bad() {
  take("action")
}