javascript - Redux Saga select is not a function -
i trying state inside saga using select
effect.
i used answer start - getstate in redux-saga?
code:
const { select } = reduxsaga select()
using codepen redux saga setup (line 35).
error - select not function
much appreciated.
the select
undefined
.
you may need upgrade version of react-saga
0.5.0
higher version.
e.g. https://npmcdn.com/redux-saga@0.5.0/dist/redux-saga.min.js https://npmcdn.com/redux-saga@0.9.0/dist/redux-saga.min.js
(at least 0.9.0 ok in test. 0.12.1 latest.)
and import reduxsaga.effects
const { put, call, select } = reduxsaga.effects;
the revised be:
Comments
Post a Comment