Alternative to Effect.tryCatchPromise to avoid re-throwing
Hi everyone,
I have an API that instead of throwing returns an object containing
I used
Is there some other Effect constructor that allows to avoid throwing? Something like:
I have an API that instead of throwing returns an object containing
data and error, if error is not null, then the request failed.I used
Effect.tryCatchPromise to implement this:Is there some other Effect constructor that allows to avoid throwing? Something like:
