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

accessor is not available

Open thien-do opened this issue 1 year ago • 1 comments

The docs say there's childrenAccessor and isOpenAccessor but I only see getChildren in the code 🤔 is this upcoming API?

thien-do avatar Oct 18 '22 03:10 thien-do

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.

jameskerr avatar Oct 24 '22 16:10 jameskerr