You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because run does not reject on error, we should expose a new promise property from useAsync and in the render props of <Async>, which rejects or resolves along with the internal promise. Probably just create a new Promise(...) along with new window.AbortController() and keep it as a ref. It can be resolved/rejected from handleResolve and handleReject.
The text was updated successfully, but these errors were encountered:
Because
run
does not reject on error, we should expose a newpromise
property fromuseAsync
and in the render props of<Async>
, which rejects or resolves along with the internal promise. Probably just create anew Promise(...)
along withnew window.AbortController()
and keep it as a ref. It can be resolved/rejected fromhandleResolve
andhandleReject
.The text was updated successfully, but these errors were encountered: