v1.6.0
This release comes with stability improvements for the useQuery
and useSubscription
hooks
when using suspense and concurrent mode. They should behave the same as before under normal
circumstances and continue to deliver the correct state on initial mount and updates.
The useQuery
hook may however now trigger suspense updates when its inputs are changing,
as it should, instead of erroneously throwing a promise in useEffect
.
The added stale: boolean
flag on the hooks indicates whether a result is "stale".
useQuery
will expose stale: true
on results that are cached but will be updated
due to the use of cache-and-network
.
We've also made some changes so that client.query()
won't throw a promise, when suspense
mode is activated.