0.3.0: Support `useBackgroundQuery` and `useReadQuery` in streaming SSR
This release adds support for Apollo Client's useBackgroundQuery
and useReadQuery
hooks, which should be imported from this package, @apollo/experimental-nextjs-app-support
, instead of @apollo/client
when used with Next's app router.
Any request that is initiated on the server via useBackgroundQuery
will be deduplicated so a client fetch is not simultaneously initiated during the client pass on first render. See the example in examples/polls-demo/app/cc/poll-cc.tsx
for a demo.
This release also upgrades the @apollo/client
dependency to use the latest beta release, 3.8.0-beta.4
.