Skip to content

Commit 8a3752f

Browse files
authored
docs: Fix bad link and typo (TanStack#658)
1 parent bb3535d commit 8a3752f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ const CreateTodo = () => {
12671267
}
12681268
```
12691269
1270-
Even with just variables, mutations aren't all that special, but when used with the `onSuccess` option, the [Query Cache's `invalidateQueries` method](#querycacherefetchqueries) and the [Query Cache's `setQueryData` method](#querycachesetquerydata), mutations become a very powerful tool.
1270+
Even with just variables, mutations aren't all that special, but when used with the `onSuccess` option, the [Query Cache's `invalidateQueries` method](#querycacheinvalidatequeries) and the [Query Cache's `setQueryData` method](#querycachesetquerydata), mutations become a very powerful tool.
12711271
12721272
Note that since version 1.1.0, the `mutate` function is no longer called synchronously so you cannot use it in an event callback. If you need to access the event in `onSubmit` you need to wrap `mutate` in another function. This is due to [React event pooling](https://reactjs.org/docs/events.html#event-pooling).
12731273
@@ -2128,7 +2128,7 @@ setQueryData(queryKey, oldData => newData)
21282128
21292129
The `invalidateQueries` method can be used to invalidate and refetch single or multiple queries in the cache based on their query keys or any other functionally accessible property/state of the query. By default, all matching queries are immediately marked as stale and active queries are refetched in the background.
21302130
2131-
- If you **no not want active queries to refetch**, and simply be marked as stale, you can use the `refetchActive: false` option.
2131+
- If you **do not want active queries to refetch**, and simply be marked as stale, you can use the `refetchActive: false` option.
21322132
- If you **want inactive queries to refetch** as well, use the `refetchInactive: true` option
21332133
21342134
```js

0 commit comments

Comments
 (0)