Hi Adam Moroff,
Good day to you.
We have validated your requirements and prepared a sample according to that. When the computed property is fired, the overall component will be re rendered. So, if you want to maintain the expanded state, you have to update the state of the corresponding node in the nodeExpanded event using the following code snippet.
onExpand(args) {
this.$store.dispatch("onExpand", args.nodeData);
} |
onExpand(state, data) {
state.treeDataSource = state.treeDataSource.filter(
_ => (_.expanded = data.expanded)
);
} |
Kindly check the above sample and let us know if you have any concerns.
Regards,
Ashokkumar B.