Skip to content

Commit 3ac78ac

Browse files
authored
Merge pull request #140 from HassanBahati/HassanBahati/dc-feedback
2 parents 1060815 + c8d2b6a commit 3ac78ac

File tree

3 files changed

+57
-116
lines changed

3 files changed

+57
-116
lines changed

docs/react/data-connect/mutations.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,6 @@ const createMovie = useDataConnectMutation(createMovieRef, {
7272

7373
In this case only the query reference `getMovieRef({ id: "1" })` will be invalidated.
7474

75-
### QueryKey
76-
77-
You can also provide a `QueryKey` to the invalidate array, for example:
78-
79-
```tsx
80-
const createMovie = useDataConnectMutation(createMovieRef, {
81-
invalidate: [
82-
["GetMovieById", { id: "1" }]
83-
],
84-
});
85-
```
86-
8775
## Overriding the mutation key
8876

8977
### Metadata

0 commit comments

Comments
 (0)