Commit 46a45c3
docs: add links out to hooks to make the page more useful (#13201)
The [page on React
hooks](https://www.apollographql.com/docs/react/api/react/hooks) is our
7th most popular docs page from Q1 for questions using our Ask AI
component. When visiting the page, I can see why. The page tells you to
look at the sidebar, but you have to scroll all the way down on the
sidebar to get to what you want, and even then, it's a bit unclear what
you're supposed to click on.
Some of the questions we're getting:
"Where are the hooks in the sidebar?"
"What are all of your hooks?"
"What all hooks are available?"
"I don't understand which hook I'm supposed to select"
"where are the docs on useFragment?"
"take me to the useLazyQuery page"
This PR adds clear links to the hooks.
Also worth noting that this page isn't actually discoverable through the
sidebar, so they may be getting here through an old link, or direct
Google search results.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Updated React hooks API reference documentation with improved
descriptions, enhanced page structure, and better organization for
easier navigation.
* Added comprehensive navigation links to individual Apollo Client React
hook API reference pages.
* Extended documentation to include experimental hooks API reference
materials.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Jerel Miller <jerelmiller@gmail.com>1 parent 95bab38 commit 46a45c3
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments