Skip to content

Commit 3bc5445

Browse files
committed
docs(dataconnect): revert querykey reference
1 parent b8eadfe commit 3bc5445

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
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)