AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Refactor data grid behavior into `useDataGrid()` hook

Open craxal opened this issue 1 year ago • 2 comments

The purpose of this prototype is to:

  • Establish a pattern of organizing state and reducers into a hierarchical structure. Hooks such as useDataGrid() that implement a complex set of behaviors can delegate state and behaviors to sub-hooks, which makes reasoning, debugging, and maintenance easier.
  • Simplify the DataGrid component implementation by hoisting state and behaviors into a hook and leaving derivative work within the component.
  • Factor out common explorer behaviors into components/hooks. For example, create a useDataSource() sub-hook to encapsulate properties and behaviors related to loading.

craxal avatar Feb 06 '24 23:02 craxal

Pushing back due to higher-priority items.

craxal avatar Apr 16 '24 17:04 craxal

In regard to the DataGrid component, this work is essentially done. Other points are tracked by other work items.

craxal avatar May 20 '24 23:05 craxal