Quantcast
Channel: Problem with select in redux-saga. Error: call: argument of type {context, fn} has undefined or null `fn` - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Gabriel Arghire for Problem with select in redux-saga. Error: call:...

The ProblemYou are probably doing this:const foo = yield call(bar())So you don't pass the function itself, but rather the function call.The FixTry to only send the function, not its call.const foo =...

View Article



Answer by azundo for Problem with select in redux-saga. Error: call: argument...

The error is not with your selector but with your yield call - it takes the function as an arg followed by the arguments to pass to the function: https://redux-saga.js.org/docs/api/#callfn-args. So it...

View Article

Problem with select in redux-saga. Error: call: argument of type {context,...

After looking through some answers to similar questions here, I just can't get my selector to work. Here's my selector.js:export const getButtonStatus = state => state.buttonStatus;(That's the...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images