react-spectrum
8326f906 - feat: Tree multiple level loading support and only count "items" for collection size (#8349)

Commit
64 days ago
feat: Tree multiple level loading support and only count "items" for collection size (#8349) * Update tree and listlayout to handle multi loaders * adapting other stories to new loader api and adding useAsync example story * add tests * fix story for correctness, should only need to provide a dependecy at the top most collection * restoring focus back to the tree if the user was focused on the loader * fixing estimated loader position if sections exist taken from https://github.com/adobe/react-spectrum/pull/8326 * skip test for now * revert loader keyboard focus specific logic * pulling over relevant code from focus_loading_spinners * modify tree to return item count when querying size * update TableCollection to return just the number of rows as size also the aria row index and pos in set from empty/isLoading state wrapper since it might be confusing to hear that there are items when the table/tree is empty * update other collection components to leverage item only count * clean up * properly prevent picker from opening where there arent items * fix lint * review comments * review comments * making the async stories not load forever * docs: Async load more documentation for RAC (#8431) * add docs for gridlist * add async loading docs for GridList and Listbox adjacent components * add docs example for table * add prop tables * rename sentinel component and add prop tables * adding tree docs for loading spinners * fix docs lint * typo and left over stuff * export the loadMoreItem props from the monopackage * review comments * fix the tree example in docs * review comments * review comments * forgot to remove a delay * review comments
Author
Parents
Loading