Skip to content

Commit 48c40e3

Browse files
docs: add v2 docs links
1 parent ead2e5d commit 48c40e3

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Enjoy this library? Try the entire [TanStack](https://tanstack.com)! [React Tabl
2828

2929
## Visit [react-query.tanstack.com](https://react-query.tanstack.com) for docs, guides, API and more!
3030

31+
Still on **React Query v2**? No problem! Check out the v2 docs here: https://react-query-v2.tanstack.com/.
3132
## Quick Features
3233

3334
- Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)

docs/src/components/Nav.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@ export const Nav = () => (
2424
<div className="flex flex-grow items-center justify-between w-3/4 md:w-auto md:justify-end space-x-4 md:space-x-8 h-16">
2525
<div className="flex space-x-4 md:space-x-8 text-sm md:text-base">
2626
<div>
27+
Docs (
2728
<Link href="/overview">
28-
<a className="leading-6 font-medium">Docs</a>
29-
</Link>
29+
<a className="leading-6 font-medium">v3</a>
30+
</Link>{' '}
31+
/{' '}
32+
<a
33+
href="https://react-query-v2.tanstack.com/docs/overview"
34+
className="leading-6 font-medium"
35+
>
36+
v2
37+
</a>
38+
)
3039
</div>
3140
<div>
3241
<Link href="/examples/simple">

0 commit comments

Comments
 (0)