DCCS-IT-Business-Solutions / react-datagrid-plain

A light datagrid build upon react-table-plain for React.
MIT License
0 stars 6 forks source link

Change return type of OnLoadData interface #41

Open nedsalk opened 3 years ago

nedsalk commented 3 years ago

Change it to a generic that's inferred from the function passed via useDataState. We can then take it steps further from there, for example in the initialFilter, which could then be changed to Partial<Record<keyof filter-related function parameter, corresponding value type>>.

nedsalk commented 3 years ago

Make initialFilter read from persistState if it exists?