Add a transaction API to DataTable so consumers can imperatively add, update, and remove rows without replacing the entire data array.
- New Hook: useDataTableData a custom hook that manages table data internally and exposes a transaction API
- Support both controlled and managed modes
- Controlled (current):
data provided by consumer. API: Consumer uses useDataTableData externally, passes data down
- Managed (new):
initialData seeds internal state for managed mode. Transaction API: ref.applyTransaction(...)
Add a transaction API to DataTable so consumers can imperatively add, update, and remove rows without replacing the entire data array.
dataprovided by consumer. API: Consumer usesuseDataTableDataexternally, passesdatadowninitialDataseeds internal state for managed mode. Transaction API:ref.applyTransaction(...)