CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

Performance issues with large trees when i search any node, DOM get stuck and Spinner also not working properly? #121 #779

Closed Anj21 closed 4 years ago

Anj21 commented 4 years ago

Hello Everyone,

I have a tree with 10,000 nodes. when i search something, so when it fetching the search result and re-render the tree, it takes alot time on rendering the tree. To improve the user experience, i put spinner on search click, but it is not spinning, it also stuck when DOM re-render the data.

I just want that when DOM is re-rendering the tree, spinner works properly, but it get stuck. so can anyone help me out to solve this issue.

PLEASE READ CAREFULLY!

Reproduce

Please reproduce here if reporting a bug, or requesting help: https://stackblitz.com/edit/angular-wxansn

Additional Info

Use the Slack Channel

The fastest way to get an answer is via the slack channel: https://angular-tree-component.herokuapp.com/

You will also get updates on releases, bugfixes and other announcements.

Search Docs First

Please look for an answer in the docs before submitting an issue: angular2-tree.readme.io.

adamkleingit commented 4 years ago

If you do client side filtering, the only way to show a spinner and keep the UI free is to use a Web Worker.