How do I access the redux state inside a saga function?
Short answer:
import { select } from \'redux-saga/effects\';
...
let data =
This is what "selector" functions are for. You pass them the entire state tree, and they return some piece of the state. The code that calls the selector doesn't need to know where in the state that data was, just that it was returned. See http://redux.js.org/docs/recipes/ComputingDerivedData.html for some examples.
Within a saga, the select() API can be used to execute a selector.