Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree not updating #6

Closed
scriptburn opened this issue Jul 27, 2020 · 3 comments
Closed

tree not updating #6

scriptburn opened this issue Jul 27, 2020 · 3 comments

Comments

@scriptburn
Copy link

Tree not updating when nodes added dynamically

@TinyWisp
Copy link
Owner

in version 2.3.0, I added a method reload() , which can be called to update the component when the prop 'tree' is mutated.
however, instead of mutating the prop 'tree', methods such as create, remove, move and setTitle are recommended.

@scriptburn
Copy link
Author

Yeah i saw those functions but data update on props should also reflect in tree , it feels more like a usual componenet behaviour , so you can just chnage your json data and it get reflected in tree other wise you have to loop through the json to recreate tree if i added bunch of item in json or removed some

@TinyWisp TinyWisp closed this as completed Aug 5, 2020
@TinyWisp
Copy link
Owner

TinyWisp commented Nov 12, 2020

As of 2.10.0, I added the autoReload property, which is able to make the component update automatically when the tree property is mutated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants