I have an Ionic app that has a user
provider with a signup()
method:
doSignup() {
// set
I had the same error and typical scenario was that I was returning different actions based on certain condition. But handling of one condition was missing and I was not returning anything under my effects. That's when this issue came up. It's always better to have a default return action to avoid such instances.
...mergeMap((res: FetchWorkflowStatusResponse) => {
if(this){
return action1
} else if(that){
return action2
}
}
Now if some value other than this
and that
comes then there will not be any return
statement and the error will be thrown.