is it possible to use it with redux-saga?
ValentinBlokhin opened this issue · comments
ValentinBlokhin commented
I have the issue when try to use saga effects:
Error: The state should be an object and it should always have at least "name" property. You passed {
"@@redux-saga/IO": true,
"SELECT": {
"args": []
}
}
Krasimir Tsonev commented
Hey, can you paste some more code. How's the integration with redux-saga implemented.
vinvm commented
'idle': {
'start': function* ({ todos }, todo) {
yield 'submit';
const result = yield call(async);
this.success();
},
},
for example for a regular saga call. I guess there is no handler for saga actions in handleGenerator.js
Krasimir Tsonev commented
Well, Stent is not a complete replacement of redux-saga. You are yield
ing to Stent not to redux-saga orchestration so such code will not work. Or in other words
function* ({ todos }, todo) {
yield 'submit';
const result = yield call(async);
this.success();
}
is run by Stent and not by redux-saga.