Skip to content

How to log all selectedKeys instead of 'all' in the Collections #7182

Answered by snowystinger
sadeghbarati asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the discussion. The special case for 'all' is to handle async collections of items where not all the keys are known up front.
If you would like to convert the 'all' to a set of keys, you can run a loop over your item collections and pull out the keys of each item.

For more information, see https://react-spectrum.adobe.com/react-stately/selection.html#select-all

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sadeghbarati
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants