Well, perhaps this is the fastest patch in the release history.
So following the advice of @gaearon. I decided to drop the getState
effect and only keep select
. To get the entire Store's state, simply use yield select()
without arguments
Before (in the previous v0.9.0) to get the entire state we used
import { getState } from 'redux-saga/effects'
function* saga() {
// No longer valid with 0.9.1
yield getState()
}
Now (with 0.9.1) to get the entire state we use
import { select } from 'redux-saga/effects'
function* saga() {
// get the entire state
yield select()
}
Other changes
- Using the
getState()
param passed to the root Sagas is now deprecated (this is thegetState
argument passed to the root Sagas started by the middleware, not to confound with the droppedgetState
effect above) - Fixed SagaMonitor example code to support logging
select
effects