Skip to content

DataTable - add transaction API #37

@dhuebner

Description

@dhuebner

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(...)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions