import{j as t,a as e,F as a}from"./dataProvider-3f13e24d.js";import{M as m,C as s,b as p}from"./index-ba82f09b.js";import{U as u,D as c}from"./UseMutation.stories-bd14d8b3.js";import{u as i}from"./index-a1cf9e47.js";import"./index-76fb7be0.js";import"./_commonjsHelpers-de833af9.js";import"./_baseSet-5837f3b2.js";import"./_baseAssignValue-4b27bc5d.js";import"./index-d3ea75b5.js";import"./iframe-973434a3.js";import"../sb-preview/runtime.js";import"./index-11d98b33.js";import"./assertThisInitialized-081f9914.js";import"./cloneDeep-35baf799.js";import"./_baseIteratee-d87c84d1.js";import"./_baseFor-d6cf4e2e.js";import"./identity-66bf3aad.js";import"./_initCloneObject-017b06d4.js";import"./keysIn-ce4aae3b.js";import"./index-356e4a49.js";import"./index-cd5774e0.js";import"./useMutation-5bff67ad.js";import"./Button-a22a3ea5.js";import"./index-8d47fad6.js";import"./Tooltip-459141a0.js";import"./useIsFocusVisible-e5ed743c.js";function n(r){const o=Object.assign({h1:"h1",p:"p",a:"a",h2:"h2"},i(),r.components);return e(a,{children:[t(m,{of:u}),`
`,t(o.h1,{id:"usemutation",children:"UseMutation"}),`
`,e(o.p,{children:["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. ",t(o.a,{href:"https://marmelab.com/react-admin/Actions.html#usequery-and-usemutation",target:"_blank",rel:"nofollow noopener noreferrer",children:"More information"}),"."]}),`
`,t(s,{}),`
`,t(o.h2,{id:"default",children:"Default"}),`
`,t(p,{of:c})]})}function W(r={}){const{wrapper:o}=Object.assign({},i(),r.components);return o?t(o,Object.assign({},r,{children:t(n,r)})):n(r)}export{W as default};
