Skip to content

Commit

Permalink
chore(docs): fix url for skipToken (#11832)
Browse files Browse the repository at this point in the history
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
  • Loading branch information
38elements and phryneas committed May 6, 2024
1 parent d67d7f9 commit 723784b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/data/suspense.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ For more information, see the [`useSuspenseQuery`](../api/react/hooks/#usesuspen
While `useSuspenseQuery` and `useBackgroundQuery` both have a `skip` option, that option is only present to ease migration from `useQuery` with as few code changes as possible.
It should not be used in the long term.

Instead, you should use [`skipToken`](/react/api/react/hooks#skiptoken`):
Instead, you should use [`skipToken`](/react/api/react/hooks#skiptoken):

```js title="Recommended usage of skipToken with useSuspenseQuery"
import { skipToken, useSuspenseQuery } from '@apollo/client';
Expand Down

0 comments on commit 723784b

Please sign in to comment.