react-redux-saga
react bindings for redux-saga
import Saga from 'react-redux-saga'; // Saga as a component// starts running once it mounts// gets cancelled when it unmounts<Saga = /> // you can read redux state / passed props{ // getState().key.state... // x === 1 // y === 2} <Saga = = = /> // alternately, there's a decorator version@ { // ... }
getting started
include <Sagas>
high up in your react tree, and pass it the result of createSagaMiddleware
. example -
let middle = ; let store = ; // from redux ;}
etc
- this module comes from the work on redux-react-local, and works well with it