react-arborist
react-arborist copied to clipboard
accessor is not available
trafficstars
The docs say there's childrenAccessor and isOpenAccessor but I only see getChildren in the code 🤔 is this upcoming API?
There is now a childrenAccessor, but the isOpenAccessor is gone in version 2. The tree manages the open state internally. You can set it initially though with the initialOpenState prop. And you can access it with tree.openState.