Minor Changes
- Add a
staleWhileRevalidate
option to thessrExchange
, 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 usingcache-and-network
by default (which isn't recommended) as thessrExchange
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)