Handling Promise Rejection in Effect with React Component Integration
I'm looking for a terse way to recover from a failure with a
I think the following would fix it without messing up anything:
I could use runPromiseExit, but since I don't need to comb through the causes it doesn't feel right.
Promise.reject in order to interop with a react component expecting a promise-returning function as a prop, and the following produces a wrong type: Promise<void | Promise<void> | undefined>I think the following would fix it without messing up anything:
I could use runPromiseExit, but since I don't need to comb through the causes it doesn't feel right.
