refetch useTable data

Hi guys! can we use any method to refetch data in useTable hook?
2 Replies
statutory-emerald
statutory-emerald2y ago
Yes, you can use this
import { useTable } from "@pankod/refine-react-table";

const {
refineCore: { tableQueryResult },
} = useTable();

tableQueryResult.refetch();
import { useTable } from "@pankod/refine-react-table";

const {
refineCore: { tableQueryResult },
} = useTable();

tableQueryResult.refetch();
absent-sapphire
absent-sapphire2y ago
wow) real! thanks)