useFetchwas changed. Previously it was the Response object. Now it's an Error object with
responseproperty. If you are using
useFetchand are using the
errorvalue, expecting it to be of type Response, you must now use
<Initial>was renamed to
<Pending>was renamed to
<Fulfilled>was renamed to
<Rejected>was renamed to
<Settled>was renamed to
<Async.Pending>was renamed to
deferFnnow receives an
argsarray as the first argument, instead of arguments to
runbeing spread at the front of the arguments list. This enables better interop with TypeScript. You can use destructuring to keep using your existing variables.
useAsyncnow takes the
optionsobject as optional second argument. This used to be
initialValue, but was undocumented and inflexible.