Mihailo Vojinovic
Mihailo Vojinovic
> @mihna123 Calling `flattenTree()` more than once is potentially problematic. Iterating over the whole data set multiple times is inefficient and error prone. > > When I made that small...
@mellis481 I cant access your [codesandbox](https://codesandbox.io/p/sandbox/thirsty-black-2mmgjp), did you set it to public?
@mellis481 Sandbox works now, thank you. So if I expand all nodes with `expandedIds={treeData.map((x) => x.id)}` the error happens again.
@mellis481 Works better with a state variable. I am getting error now when trying to add a new node after deleting all nested nodes. See below for an example: ...
@mellis481 Very interesting! I posted this issue a while back when working on a project I no longer work on, so I no longer have a personal interest in this....
Why was this closed? I think this is a fine solution to issue #133