re-render tree Data with Uncontrolled Environment Tree #18
Replies: 4 comments 2 replies
-
I believe you have to use a controlled environment to have your tree react to changes applied to your data. Either that, or implement a custom data provider that listens to changes in your data. |
Beta Was this translation helpful? Give feedback.
-
Yes, as @doMynation said, either you need to provide the data in a controlled environment, or what is likely easier in your case, use a custom dataprovider that implements the |
Beta Was this translation helpful? Give feedback.
-
Do you have an example of how to implement a custom Dataprovider / onDidChangeTreeData for UncontrolledTreeEnvironment? |
Beta Was this translation helpful? Give feedback.
-
Still struggling getting the tree to recognized refreshed tree data. I made a new function in a copy of the StaticTreeDataProvider
This can change the items data / name and it renders in the ui but the above doesnt.
But it looks like the data is already being updated but the UI isn't rendering the updates. Anyone get this working? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm facing the issue of re-render the Uncontrolled environment tree. while adding new data into the list then the list will be updated but does not reflect in the tree.
I have attached the video of this issue. kindly check it and tell us Is there an option for re-rendering the tree with an uncontrolled environment?
react-complex-tree-Uncontrolled.mp4
Thanks in Advance!
Beta Was this translation helpful? Give feedback.
All reactions