useTable hook with post method
useTable use useList which uses get method, i want to use post method??
useTableuseTableuseTableuseTableuseTableuseTableuseTablegetListNote: you can ask me a follow up question by @ mentioning me againNote: you can ask me a follow up question by @ mentioning me againNote: you can ask me a follow up question by @ mentioning me againuseCustomMutationuseCustomMutation/categoriesmutateuseCustomTableuseCustomTableuseBaseTabledataProvidermetaimport { useCustomMutation, useApiUrl } from "@refinedev/core";
interface ICategory {
id: number;
title: string;
}
const apiUrl = useApiUrl();
const { mutate } = useCustomMutation<ICategory>();
mutate({
url: `${API_URL}/categories`,
method: "post",
values: {
title: "New Category",
},
}); import { useTable as useBaseTable } from "@refinedev/core";
function useCustomTable(...args) {
const table = useBaseTable(...args);
// Modify the table object or add additional logic here
return table;
}