refactor(web): trim data table hook return API
- return only the TanStack table instance from useDataTable. - keep internal state handling private because callers do not consume it directly.
This commit is contained in:
@@ -227,15 +227,5 @@ export function useDataTable<TData>(options: UseDataTableOptions<TData>) {
|
||||
|
||||
return {
|
||||
table,
|
||||
sorting,
|
||||
onSortingChange,
|
||||
columnVisibility,
|
||||
onColumnVisibilityChange,
|
||||
rowSelection,
|
||||
onRowSelectionChange,
|
||||
expanded,
|
||||
onExpandedChange,
|
||||
pagination,
|
||||
onPaginationChange,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user