Closed jaulz closed 8 years ago
You can return whatever you want in locally
.
But this would not trigger the failed
callback. Basically my remotely
returns a promise which is rejected with the actual error object but as my locally
is called afterwards the error is forgotten. Any idea how to reflect this?
Your locally
needs to not return a valid value for the failure handling to work. Alternatively, you can return a sentinel value in locally
that your component can render appropriately into an error.
I don't want to handle the error in the component itself but instead it should be automatically handled in the container. This is nothing which one can do today if I understand the code correctly. Should this be a feature request?
Just throw
in your locally
.
Is it possible to return a custom error in locally? Thanks :)