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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -