Replies: 4 comments
-
Is there an event handler that changes your global state which then re-renders every child? |
Beta Was this translation helpful? Give feedback.
-
Thanks for replying, yes there is, and as i discovered this morning this is causing the re render and tree initialize. But I need to update an external store and run validation, so the parent will need to re render. I was trying to use the component in a controlled way, but that doesn't seem possible, I'm now unsure as to how i get the value when the tree closes. How do developers normally handle this? |
Beta Was this translation helpful? Give feedback.
-
There's prevent tree render on parent render HOC example in the docs that you can refer to. Normally you'd hook up |
Beta Was this translation helpful? Give feedback.
-
Working example in React Hooks #445 (comment) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Just wondering if this is the desired logic or if my implementation isn't working correctly. Happy to raise a bug report if this is found to be an issue.
Looks as if on every prop change the TreeManager in initialized from scratch therefore filter state is lost.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions