Very new to react, trying hooks to simplify code and readability.
I am trying to implement the odata service example from: https://www.telerik.com/kendo-react-ui/components/grid/data-operations/odata-server-operations/
The odata service is fine, I am just trying to get the function setGridState1 to set the grid state to gridState and then call the function toODataString passing in the grid state (and therefore parsing it to an odata string) and then passing it to my rest api.
I can get the debugger points to trigger, but after I update a filter in the grid and it calls fetchData, gridState is still null?
Missing something crucial here, not sure what it is though, any help would be great.