Skip to content

0.3.0: Support `useBackgroundQuery` and `useReadQuery` in streaming SSR

Compare
Choose a tag to compare
@alessbell alessbell released this 23 Jun 15:23
· 187 commits to main since this release

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.