Skip to content

Commit

Permalink
docs(useConnectMutation): add example hook usage
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanBahati committed Dec 2, 2024
1 parent 800322e commit f280b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/react/hooks/data-connect/useConnectMutation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ The hook manages the mutation process and provides an easy-to-use interface to m

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

function Component() {
const { mutate, isPending, isSuccess, isError, error } =
useConnectMutation(createMovieMutation);
useConnectMutation(createMovieRef);

const handleSubmit = async (movieData) => {
try {
Expand Down

0 comments on commit f280b10

Please sign in to comment.