From 3958fc0732a0fa6588d1e92dea1e84d9868c2ae8 Mon Sep 17 00:00:00 2001 From: Lacy Morrow Date: Mon, 14 Aug 2023 14:28:12 -0400 Subject: [PATCH] Update 05-client-side-rendering.mdx with latest tanstack query version (#54009) ### What? Update Tanstack query URL ### Why? The latest Tanstack query version is v4, the docs currently list v3 --- .../02-rendering/05-client-side-rendering.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/03-pages/01-building-your-application/02-rendering/05-client-side-rendering.mdx b/docs/03-pages/01-building-your-application/02-rendering/05-client-side-rendering.mdx index d0df6bfa63b4c..8321a2786a774 100644 --- a/docs/03-pages/01-building-your-application/02-rendering/05-client-side-rendering.mdx +++ b/docs/03-pages/01-building-your-application/02-rendering/05-client-side-rendering.mdx @@ -17,7 +17,7 @@ After the page has been loaded for the first time, navigating to other pages on In Next.js, there are two ways you can implement client-side rendering: 1. Using React's `useEffect()` hook inside your pages instead of the server-side rendering methods ([`getStaticProps`](/docs/pages/building-your-application/data-fetching/get-static-props) and [`getServerSideProps`](/docs/pages/building-your-application/data-fetching/get-server-side-props)). -2. Using a data fetching library like [SWR](https://swr.vercel.app/) or [TanStack Query](https://tanstack.com/query/v3/) to fetch data on the client (recommended). +2. Using a data fetching library like [SWR](https://swr.vercel.app/) or [TanStack Query](https://tanstack.com/query/latest/) to fetch data on the client (recommended). Here's an example of using `useEffect()` inside a Next.js page: