Skip to content

Releases: TedDriggs/ts-remote-data-react

Release list

v0.3.2

Choose a tag to compare

@TedDriggs TedDriggs released this 12 Sep 13:43
  • Add useDebugValue to useAsyncOperation, exposing the return value as the debug value

v0.3.1

Choose a tag to compare

@TedDriggs TedDriggs released this 12 Sep 13:44
  • Allow React 17 and 18
  • Update useAsyncOperation to allow returning undefined to mean RemoteData.NOT_ASKED. This allows using the hook compatibly with React's exhaustive dependencies lint.
  • Eagerly catch rejections in usePromise to avoid the browser erroneously believing there are unhandled rejections. If a promise synchronously rejected, the browser would see it before the useEffect inside usePromise had a chance to register its catch callback, resulting in errors showing up in the browser console.