Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

v2.0.0

Choose a tag to compare

@jonkoops jonkoops released this 29 Mar 10:34
· 757 commits to main since this release

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 usePromise is now possible, check out the new Cancelling Fetch Requests guide.
  • There are now isPending(), isFulfilled() and isRejected() 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 error field on the rejected result has been renamed to reason to align with the defaults from Promise.allSettled
  • The PromiseStatus enum is no longer present, check the status of the result with isPending(), isFulfilled() and isRejected() functions instead.