Skip to content

Commit f280b10

Browse files
committed
docs(useConnectMutation): add example hook usage
1 parent 800322e commit f280b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/react/hooks/data-connect/useConnectMutation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ The hook manages the mutation process and provides an easy-to-use interface to m
1717

1818
```jsx
1919
import { useConnectQuery } from "@tanstack-query-firebase/react";
20-
import { listMoviesQuery } from "@/your-package-name/your-connector";
20+
import { createMovieRef } from "@/your-package-name/your-connector";
2121

2222
function Component() {
2323
const { mutate, isPending, isSuccess, isError, error } =
24-
useConnectMutation(createMovieMutation);
24+
useConnectMutation(createMovieRef);
2525

2626
const handleSubmit = async (movieData) => {
2727
try {

0 commit comments

Comments
 (0)