Open datahookinc opened 1 year ago
Needs to have status
and error
indicators as well.
Look at useQueries
in react-query for inspiration: likely just an array of promises that handle adding to the store themselves.
For instance:
tables.useLoadData([
getData('/mydata').then(d => tables.cats.insertRows(d)),
getData('/myotherdata').then(d => tables.other.insertRows(d)),
]);