Replies: 1 comment 1 reply
|
It's probably best to not rely on the order of |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
After #9545, there are still several places in this repo that call
.getKeys()directly. I'm not sure whether all of them will eventually run into the same kind of problem — but at least some of them will.Context
I'm implementing a breadcrumbs component for our internal component library, and I looked at S2's implementation as a reference. That's when I noticed these lines:
react-spectrum/packages/@react-spectrum/s2/src/Breadcrumbs.tsx
Lines 455 to 461 in 8ae29fa
Admittedly, the odds of a breadcrumbs component's items being reordered are pretty low. I also haven't had time to audit whether the remaining
getKeys()calls are affected as well. Still, I wanted to raise the question.All reactions