Hi,
I was looking into the OData example (TypeScript with Hooks) of the Grid (https://www.telerik.com/kendo-react-ui/components/grid/data-operations/odata-server-operations/) and I noticed that the typing is invalid. In "products-loader.tsx" the callback function has only the products array as argument, but when that function is called later on, it has a "data" and a "total" property.
When you then add some code in the "dataReceived" function in "main.tsx" (for example iterating the products"), you'll get errors since the data coming from the "products-loader" isn't an array of products, but an object with "data" and "total".
Could you look into that (and maybe provide a correctly typed example here)?
As a follow up, I guess the typing of the state is also incorrect? That needs to have a "data" and "total" property as well:
const [products, setProducts] = React.useState<Product[]>([]);