Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Refreshing the data model (nodes) on the tree-list view causes weird errors #66

Open
michaelkleinhenz opened this issue Apr 6, 2017 · 3 comments
Assignees

Comments

@michaelkleinhenz
Copy link
Contributor

When I reload the nodes (completely removing all entries from the nodes array, adding new ones) on an expanded tree, the reloading of the children sometimes gets "stuck", displaying "Loading" beneath the parent entry in the child list forever. Collapsing the item and expanding it again solves the problem.

@dlabrecq
Copy link
Collaborator

dlabrecq commented Apr 7, 2017

You might try calling the updateTree() function of TreeListComponent, which updates the underlying model from angular-tree-component.

The underlying call is actually tree.treeModel.update()

@michaelkleinhenz
Copy link
Contributor Author

This is already called. It sort of works, it is just sometimes getting "stuck". This is not repeatable. I get it on ~30% of the "reload" cycles on prod. In the other cases, it is working fine.

@dlabrecq
Copy link
Collaborator

Considering the component wraps angular-tree-component, we might want to file a bug with https://github.com/500tech/angular-tree-component. That is, if you're still seeing issues?

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

No branches or pull requests

2 participants