npm redux-saga 0.9.1

latest releases: 1.3.0, 1.2.3, 1.2.2...
8 years ago

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

Don't miss a new redux-saga release

NewReleases is sending notifications on new releases.