According to React documentation, this is a breaking change. Unfortunately, this is the only way to use methods like toggleFolder or manipulate a component's state from the outside.
Changelog
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update
How Has This Been Tested?
[x] I actively use this change in my codebase
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings
Description
According to React documentation, this is a breaking change. Unfortunately, this is the only way to use methods like toggleFolder or manipulate a component's state from the outside.
Changelog
How Has This Been Tested?
Checklist: