import { Meta, Story, Primary, Controls } from '@storybook/blocks';

import * as UseMutationStories from './UseMutation.stories';

<Meta of={UseMutationStories} />

# UseMutation

Internally, react-admin uses react-query to call the dataProvider. When fetching data from the dataProvider in your components, if you can’t use any of the dataProvider method hooks, you should use that library, too. [More information](https://marmelab.com/react-admin/Actions.html#usequery-and-usemutation).

<Controls />

## Default

<Story of={UseMutationStories.Default} />