About 8,740 results
Open links in new tab
  1. useMutation | TanStack Query React Docs

    Use this to use a custom React Query context. Otherwise, defaultContext will be used. The mutation function you can call with variables to trigger the mutation and optionally hooks on additional callback …

  2. Mutations in Apollo Client - Apollo GraphQL Docs

    Now that we've learned how to query data from our backend with Apollo Client, the natural next step is to learn how to modify back-end data with mutations. This article demonstrates how to send updates …

  3. How to Use the useMutation Hook in React Query - Medium

    Feb 15, 2025 · In this article, we’ll explore how to use the useMutation hook effectively. We’ll cover the basics, practical examples, and tips to help you master this tool.

  4. The Complete Guide to React Query's useMutation: Everything You …

    Mar 10, 2025 · At its core, useMutation is a React Query hook designed for handling server-side effects - primarily creating, updating, or deleting data. Unlike useQuery which is meant for data fetching, …

  5. How to use 'useMutation' in React Query - DEV Community

    Apr 19, 2022 · So 'useQuery' is only used for fetching the data but 'useMutation' is for post/put request to the backend. Lets say I have a function for post request. This createUser function takes an user …

  6. Why use useMutation in React Query? - Stack Overflow

    Feb 2, 2023 · Outside of returning useful mutation states (isPending, isSuccess, error), as of React Query v5 you can now track a mutation from another component, with help of useMutationState.

  7. useMutation | OpenAPI TypeScript

    useMutation The useMutation method allows you to use the original useMutation. The result is the same as the original function. The mutationKey is [method, path]. data and error are fully typed.

  8. React Query useMutation Hook - C# and React Insights

    Jun 26, 2023 · The useMutation hook is a feature provided by the React Query library, which is a powerful data-fetching and caching library for React applications. It allows you to easily perform …

  9. React Query - useMutation

    Mar 22, 2023 · Using mutations in your React applications, you can handle all those actions to mutate the data and simplify the management of the states of these requests. Another important concept to …

  10. What Is React Query? How To Use useMutation, useQuery, prefetch, …

    Nov 12, 2024 · The useMutation hook empowers us to handle data mutations easily. Mutations are operations that modify data on the server, such as creating, updating, or deleting data.