sacred-roseS
Refine4mo ago
15 replies
sacred-rose

useTable totals from backend

I return the totals from my backend, like for example: { data: [{...},{...},{...},{...},{...}] total: 5 }
but I can't make it work with antd useTable, unless I parse
const { result, tableProps } = useTable<MyType>({
with something like
correctlyTypedResult = result as unknown as MyType
Was this page helpful?