Replies: 1 comment 2 replies
-
This looks like a bug in useTreeData where it is trying to map over undefined children of children (i.e. A temporary fix on your end would be to use: getChildren: (item) => item.items || [], |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I tried to run the example https://react-spectrum.adobe.com/react-stately/useTreeData.html#example . It seems that when mapping over
initialItems
I get cannot read properties of undefined. I am using@react-stately/data ^3.4.2
what am I missing.Beta Was this translation helpful? Give feedback.
All reactions