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:

enter image description here


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -