Unable to migrate from useDataGrid to useTable
This works fine:
This doesn't
I get the following error
const { dataGridProps } = useDataGrid({
dataProviderName: 'inspections',
pagination: {
pageSize: 50,
},
resource: '/v1/companies/',
}); const { dataGridProps } = useDataGrid({
dataProviderName: 'inspections',
pagination: {
pageSize: 50,
},
resource: '/v1/companies/',
});This doesn't
const {
getHeaderGroups,
getRowModel,
getState,
setPageIndex,
getCanPreviousPage,
getPageCount,
getCanNextPage,
nextPage,
previousPage,
setPageSize,
} = useTable<InspectionCompany>({
columns,
refineCoreProps: {
dataProviderName: 'inspections',
pagination: {
pageSize: 50,
},
resource: '/v1/companies/',
},
}); const {
getHeaderGroups,
getRowModel,
getState,
setPageIndex,
getCanPreviousPage,
getPageCount,
getCanNextPage,
nextPage,
previousPage,
setPageSize,
} = useTable<InspectionCompany>({
columns,
refineCoreProps: {
dataProviderName: 'inspections',
pagination: {
pageSize: 50,
},
resource: '/v1/companies/',
},
});I get the following error

