Major Changes
- Breaking: Remove
pollInterval
option fromuseQuery
. Instead please consider usinguseEffect
callingexecuteQuery
on an interval, by @kitten (See #1374)
Minor Changes
- Reimplement
useQuery
to apply a consistent Suspense cache (torn down queries will still eliminate stale values) and support all Concurrent Mode edge cases. This work is based onuseMutableSource
's mechanisms and allows React to properly fork lanes since no implicit state exists outside ofuseState
in the implementation. TheuseSubscription
hook has been updated similarly without a cache or retrieving values on mount, by @kitten (See #1335) - Remove deprecated
operationName
property fromOperation
s. The newOperation.kind
property is now preferred. If you're creating new operations you may also use themakeOperation
utility instead.
When upgrading@urql/core
please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually usingnpx yarn-deduplicate
(for Yarn) ornpm dedupe
(for npm), by @kitten (See #1357)