rubber-blueR
Refine3y ago
11 replies
rubber-blue

useTable Typing error is unkown

Getting full typing expect for error :
import { useTable } from "@pankod/refine-react-table"
...
   const useTableMethods = useTable<ExpenseLaborAPI, HttpError>({
      refineCoreProps: {
         resource: ExpensesEnum.Labor,    

         initialFilter: [
            { field: "financialplan][id]", operator: "eq", value: selectedFinplan },       
         ],
     
      },
      columns,
   })

   const {
      refineCore: {
         tableQueryResult: { data: tableData, error, isLoading, isSuccess, refetch },
      },
   } = useTableMethods

tableData, isLoading, isSuccess and refetch are correctly typed. error is unkown.
How to get correct typing on error?
image.png
image.png
Was this page helpful?