useFetch
was changed. Previously it was the Response object. Now it's an Error object with response
property. If you are using useFetch
and are using the error
value, expecting it to be of type Response, you must now use error.response
instead.<Initial>
was renamed to <IfInitial>
.<Pending>
was renamed to <IfPending>
.<Fulfilled>
was renamed to <IfFulfilled>
.<Rejected>
was renamed to <IfRejected
.<Settled>
was renamed to <IfSettled>
.run
was changed from Promise
to undefined
. You should now use the promise
prop instead. This is a manual upgrade. See promise
for details.<Async.Pending>
was renamed to <Async.Initial>
.<Async>
when upgrading.deferFn
now receives an args
array as the first argument, instead of arguments to run
being spread at the front of the arguments list. This enables better interop with TypeScript. You can use destructuring to keep using your existing variables.useAsync
now takes the options
object as optional second argument. This used to be initialValue
, but was undocumented and inflexible.