react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

initialData not updating in simple tree

Open joshmarnold opened this issue 2 years ago • 3 comments
trafficstars

Is there a specific design rationale behind not letting initialData trigger an update to the tree if it changes? I'd think in most use cases, the data would change and naturally, the tree would need to reflect that change. Just putting a useEffect in use-simple-tree.ts seems to work.

CleanShot 2023-06-11 at 10 12 48

joshmarnold avatar Jun 11 '23 14:06 joshmarnold