The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
MIT License
Bot releases are visible (Hide)
stale
flag updates on query results, by @JoviDeCroock (See #1044)stale
keeping a truthy
value on a cache-and-network
operation, by @JoviDeCroock (See #1032)The new @urql/svelte
API features the query
, mutation
, and subscription
utilities, which are
called as part of a component's normal lifecycle and accept operationStore
stores. These are
writable stores that encapsulate both a GraphQL operation's inputs and outputs (the result)!
Learn more about how to use @urql/svelte
in our new API docs or starting from the Basics pages.
This release moves urql
from being in dependencies
to peerDependencies
. Please install it
explicitly, as you may have already in the past, and ensure that both urql
and @urql/core
are
not duplicated with either npm dedupe
or npx yarn-deduplicate
.
npm i --save urql
# or
yarn add urql
urql
dependency to a peer dependency.fetch
since this is done automatically starting atNext v9.4
isomorphic-unfetch
neverSuspend
to disable React.Suspense
on next.js, by @JoviDeCroock (See #923)initUrqlClient
function so that a Client
can be created manually for use in Next's newer SSR methods manually, such as getServerSideProps
, by @sunpietro (See #993)Array.prototype.find
(the only usage of an ES6 method) is commonly used and polyfilled, by @kitten (See #991)NetworkError
(isOfflineError
) not flowing back completely through the cacheExchange
.@urql/preact
implementation to match urql
React implementation. Internally these changes should align behaviour and updates slightly, but outwardly no changes should be apparent apart from how some updates are scheduled, by @kitten (See #1008)This release of Graphcache marks a point where we deem Offline Support as ready enough to remove all experimental warnings from it and regard it as stable enough to be used in apps together with urql
and @urql/preact
.
mutation_root
could cause store.updates
to be misread and cause aofflineExchange
when the network request has failed due to being offline and no cache result has been issued. Instead the offlineExchange
will now retry with cache-only
policy, by @kitten (See #985)