Skip to content

Commit 322760b

Browse files
authoredJan 23, 2025··
docs(framework): update Next.js and Svelte documentation links (#8572)
* docs(svelte): fix writable stores tutorial link Update the Svelte stores tutorial link to the correct URL in the Svelte Query overview documentation. The previous link to writable-stores was broken or outdated. * docs(ssr): update Next.js documentation links to latest version Update outdated Next.js documentation links in the SSR guide to point to the latest App Router documentation paths, ensuring users are directed to the most current and relevant documentation. Links updated: - rewrites feature - automatic static optimization - rewrite parameters
1 parent cd88c9c commit 322760b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎docs/framework/react/guides/ssr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,6 @@ Alternatively, you can set a smaller `gcTime`.
554554

555555
### Caveat for Next.js rewrites
556556

557-
There's a catch if you're using [Next.js' rewrites feature](https://nextjs.org/docs/api-reference/next.config.js/rewrites) together with [Automatic Static Optimization](https://nextjs.org/docs/advanced-features/automatic-static-optimization) or `getStaticProps`: It will cause a second hydration by React Query. That's because [Next.js needs to ensure that they parse the rewrites](https://nextjs.org/docs/api-reference/next.config.js/rewrites#rewrite-parameters) on the client and collect any params after hydration so that they can be provided in `router.query`.
557+
There's a catch if you're using [Next.js' rewrites feature](https://nextjs.org/docs/app/api-reference/next-config-js/rewrites) together with [Automatic Static Optimization](https://nextjs.org/docs/pages/building-your-application/rendering/automatic-static-optimization) or `getStaticProps`: It will cause a second hydration by React Query. That's because [Next.js needs to ensure that they parse the rewrites](https://nextjs.org/docs/app/api-reference/next-config-js/rewrites#rewrite-parameters) on the client and collect any params after hydration so that they can be provided in `router.query`.
558558

559559
The result is missing referential equality for all the hydration data, which for example triggers wherever your data is used as props of components or in the dependency array of `useEffect`s/`useMemo`s.

Diff for: ‎docs/framework/svelte/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ Svelte Query offers useful functions and components that will make managing serv
7070

7171
Svelte Query offers an API similar to React Query, but there are some key differences to be mindful of.
7272

73-
- Many of the functions in Svelte Query return a Svelte store. To access values on these stores reactively, you need to prefix the store with a `$`. You can learn more about Svelte stores [here](https://svelte.dev/tutorial/writable-stores).
73+
- Many of the functions in Svelte Query return a Svelte store. To access values on these stores reactively, you need to prefix the store with a `$`. You can learn more about Svelte stores [here](https://learn.svelte.dev/tutorial/writable-stores).
7474
- If your query or mutation depends on variables, you must use a store for the options. You can read more about this [here](../reactivity).

0 commit comments

Comments
 (0)
Please sign in to comment.