From 16ba5e7d1d8b151763209b7971aaf35c5c9809e7 Mon Sep 17 00:00:00 2001 From: Collin Stevens Date: Sun, 8 Jun 2025 14:24:09 -0700 Subject: [PATCH 1/2] fix relative links --- docs/framework/react/guides/mutations.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/framework/react/guides/mutations.md b/docs/framework/react/guides/mutations.md index 09cea2692b1..d9f9b962204 100644 --- a/docs/framework/react/guides/mutations.md +++ b/docs/framework/react/guides/mutations.md @@ -343,7 +343,7 @@ queryClient.resumePausedMutations() ### Persisting Offline mutations -If you persist offline mutations with the [persistQueryClient plugin](../plugins/persistQueryClient.md), mutations cannot be resumed when the page is reloaded unless you provide a default mutation function. +If you persist offline mutations with the [persistQueryClient plugin](../../plugins/persistQueryClient.md), mutations cannot be resumed when the page is reloaded unless you provide a default mutation function. This is a technical limitation. When persisting to an external storage, only the state of mutations is persisted, as functions cannot be serialized. After hydration, the component that triggers the mutation might not be mounted, so calling `resumePausedMutations` might yield an error: `No mutationFn found`. @@ -386,7 +386,7 @@ export default function App() { [//]: # 'Example11' -We also have an extensive [offline example](../examples/offline) that covers both queries and mutations. +We also have an extensive [offline example](../../examples/offline) that covers both queries and mutations. ## Mutation Scopes @@ -407,8 +407,7 @@ const mutation = useMutation({ [//]: # 'Materials' ## Further reading - -For more information about mutations, have a look at [#12: Mastering Mutations in React Query](../community/tkdodos-blog.md#12-mastering-mutations-in-react-query) from +For more information about mutations, have a look at [#12: Mastering Mutations in React Query](../../community/tkdodos-blog.md#12-mastering-mutations-in-react-query) from the Community Resources. [//]: # 'Materials' From 6f70b435564ce643a0c2e8c22bebc04dee396b84 Mon Sep 17 00:00:00 2001 From: Collin Stevens Date: Sun, 8 Jun 2025 14:33:52 -0700 Subject: [PATCH 2/2] Update mutations.md --- docs/framework/react/guides/mutations.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/framework/react/guides/mutations.md b/docs/framework/react/guides/mutations.md index d9f9b962204..22af057a3ef 100644 --- a/docs/framework/react/guides/mutations.md +++ b/docs/framework/react/guides/mutations.md @@ -407,6 +407,7 @@ const mutation = useMutation({ [//]: # 'Materials' ## Further reading + For more information about mutations, have a look at [#12: Mastering Mutations in React Query](../../community/tkdodos-blog.md#12-mastering-mutations-in-react-query) from the Community Resources.