npm redux-saga 0.9.1

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 the getState argument passed to the root Sagas started by the middleware, not to confound with the dropped getState effect above)
  • Fixed SagaMonitor example code to support logging select effects
latest releases: 1.1.3, 1.1.2, 1.1.1...
4 years ago