injured-turquoiseI
Refine3y ago
15 replies
injured-turquoise

UseUpdate query param

i cant add query param while using useUpdate, but it work while i use on useList

The code just like this while using useUpdate
const { mutateAsync, isLoading } = useUpdate();
await mutateAsync({
        resource: 'employees',
        values,
        id: id ?? '',
        meta: {
          query: Object.entries({ section: activeSection }),
        },
      });
Was this page helpful?