useSuspenseQuery initiates a network request and causes the component calling it to suspend while the request is in flight. It can be thought of as a drop-in replacement for useQuery that allows you to take advantage of React's concurrent features while fetching during render.
Consider a Dog component that fetches and renders some information about a dog named Mozzarella:
import { Suspense } from 'react';
import { gql, TypedDocumentNode, useSuspenseQuery } from '@apollo/client';
useSuspenseQuery initiates a network request and causes the component calling it to suspend while the request is in flight. It can be thought of as a drop-in replacement for useQuery that allows you to take advantage of React's concurrent features while fetching during render.
Consider a Dog component that fetches and renders some information about a dog named Mozzarella:
import { Suspense } from 'react';
import { gql, TypedDocumentNode, useSuspenseQuery } from '@apollo/client';
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @apollo/client from 3.5.10 to 3.8.0.
Release notes
Sourced from
@​apollo/client
's releases.... (truncated)
Changelog
Sourced from
@​apollo/client
's changelog.... (truncated)
Commits
1ac6dda
Version Packages (#11126)1429d9c
Create GitHub release for prereleases (#11128)f54b86d
Merge pull request #10340 from apollographql/release-3.8ec1b864
chore: exiting prerelease modee7b71ae
Merge branch 'main' into release-3.8f39b86e
Refactor tests to remove RefetchFunction/FetchMoreFunction type helpers (#11119)c6c489b
Version Packages (rc) (#11088)b4aefcf
Adds support forskipToken
in options foruseSuspenseQuery
and `useBackgr...78739e3
Enforceexport type
for all type-level exports. (#11115)a803061
git-blame-ignore prettier PRDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)