react-aria Tabs State example - trying to understand what keyMap and getKeys are doing in state.collection #7043
Answered
by
BrendanBerkley
BrendanBerkley
asked this question in
Q&A
-
https://react-spectrum.adobe.com/react-aria/Tabs.html#state If I take that basic code example and plug it into Code Sandbox, and add But if
Is there a gap in my understanding here? What's the correct way to get a list of all keys in a |
Beta Was this translation helpful? Give feedback.
Answered by
BrendanBerkley
Sep 17, 2024
Replies: 1 comment 1 reply
-
Docs on Collections are still coming. For now, you'll need to rely on the source code. What are you trying to do with the collection? Maybe we can help with that instead. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was having a few issues simultaneously, and I think I was fixating on the fact that I wasn't getting anything that I expected, getKeys among them.
I fixed an unrelated issue and so this isn't a problem anymore. But I dug around for a bit and it seems like maybe there's just some issue on my end with types not matching reality. Probably outside of anyone else's purview.
Thanks for your reply.