Maybe I don't understand something, but I've already spent 10 hours looking for an error on my part, however without success. So I assume that the error is inside the TreeView component.
When I try to change TreeViewData, I get the following error:
There is also another error popping up in the console:
displaySections just converts my data into an array of Child to then pass it all to the TreeView.
treeViewData is created absolutely correctly. If instead of TreeView I display just a list, for example, via ul and li, then when I try to update the data via updateData (via mutate) everything will work.
Maybe that's important, too. I also pass several such components inside Child, so that when you click on them, some kind of data processing happens.
Maybe I don't understand something, but I've already spent 10 hours looking for an error on my part, however without success. So I assume that the error is inside the TreeView component.
When I try to change TreeViewData, I get the following error:![image](https://github.com/cschroeter/park-ui/assets/48371419/6a86d7d9-270c-47cc-ab96-0f3304acd321)
There is also another error popping up in the console:![image](https://github.com/cschroeter/park-ui/assets/48371419/ba526780-1f54-4ce2-8a5a-40d3406c81f5)
Code of my component:
displaySections
just converts my data into an array of Child to then pass it all to the TreeView.treeViewData
is created absolutely correctly. If instead of TreeView I display just a list, for example, viaul
andli
, then when I try to update the data viaupdateData
(via mutate) everything will work.Maybe that's important, too. I also pass several such components inside Child, so that when you click on them, some kind of data processing happens.