Open jeevasusej opened 2 years ago
Your Tree component is missing an event listener for onToggle
: https://github.com/brimdata/react-arborist/blob/4fe9659d2c4cbd57582294330863d4fd7e7af74b/packages/demo/src/backend.ts#L43
Yes, that's true. I'm considering moving the "toggle" state into the component, which a way to access it from the tree api. This way, you won't have to keep track of it in the parent.
Data
Element
Main Component