This repository was archived by the owner on Jan 15, 2024. It is now read-only.
v2.0.0
This new release introduces a way to cancel fetch requests, for more information check out the new Cancelling Fetch Requests guide.
New Features ✨
- Cancelling fetch requests based on the lifecycle of
usePromiseis now possible, check out the new Cancelling Fetch Requests guide. - There are now
isPending(),isFulfilled()andisRejected()utility functions to check the status of the result, reducing boilerplate code in your statements. - New and improved documentation with guides on different topics.
Breaking Changes 💥
- The
errorfield on the rejected result has been renamed toreasonto align with the defaults fromPromise.allSettled - The
PromiseStatusenum is no longer present, check the status of the result withisPending(),isFulfilled()andisRejected()functions instead.