github urql-graphql/urql @urql/core@2.2.0

latest releases: @urql/next@1.1.3, @urql/vue@1.4.2, @urql/svelte@4.2.2...
3 years ago

Minor Changes

  • Add a staleWhileRevalidate option to the ssrExchange, which allows the client to immediately refetch a new result on hydration, which may be used for cached / stale SSR or SSG pages. This is different from using cache-and-network by default (which isn't recommended) as the ssrExchange typically acts like a "replacement fetch request", by @kitten (See #1852)

Patch Changes

  • ⚠️ Fix prevent mangling embedded strings in queries sent using the GET method, by @JoviDeCroock (See #1851)
  • The single-source behavior previously wasn't effective for implementations like React,
    where the issue presents itself when the state of an operation is first polled. This led to the operation being torn down erroneously.
    We now ensure that operations started at the same time still use a shared single-source, by @JoviDeCroock (See #1850)

Don't miss a new urql release

NewReleases is sending notifications on new releases.