react-json-view
react-json-view copied to clipboard
shouldCollapse does not work as intended
i am returning false in many places but it is still showing as collapsed. I know this is not very descriptive. but i wanted to see if this is an issue others are having as well?
I just realized shouldCollapse callback is only called for field types array and object. I was doing something expecting all values would go through this callback and maybe you are expecting the same thing.
Yeah it's not working for me either. I'm returning false, and the root node is collapsed. I would like to expand the root node and show the immediate children by default.
Ahh, my shouldCollapse() function was async and returned a Promise