-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
Autotable blocks the UI with large amount of data #1017
Comments
Chunking the table can solve the issue of blocking the main thread, checkout the example is this issue. |
It's a great idea and it works what you intended but my data is variable size and chunks are too different in size. Having to calculate manualli the width for every export I have is too much work. Thank you for your recommendation, I'm sure it will help someone but it's not an ideal solution for us it seems. |
I think there could be an option to automate chunking the table page by page, or even could be the default behavior so we don't block the UI with large tables. |
So that basically now means for me that I have to find a new package if I want to fix this? |
Or implement it yourself, PRs are welcome :) |
Oh thank you but I don't think I'm the right person for that. 😅 Sorry if I came of as crass, I'm really thankful for your help. My response might have seem like I was being dismissive but I was just seeing if I undrestood properly. Thank you for your help |
@zs-err No worries, your feedback is enough. I'd like to keep this open as an improvement proposal for future consideration. |
To anyone having the same issue as me, I managed to make the web worker working by following this comment from the thread I linked above. At first add the worker using angular CLI (it adds some configurations). It's not possible to download inside the web worker (at least from my experience). I sent the value from
The solution is a bit hacky but not too much. It worked for me. |
This is my code:
Versions
So when i have a lot of data, the autoTable function just blocks my main thread and my app freezes. This is a use case for us and we need some way to handle it.
Web workers are not an easy option for us because of this:
microsoft/TypeScript#20595 (comment)
Is there any way to make the job be async or chunkable? I need a way for it not to freeze the whole app.
Thank you
The text was updated successfully, but these errors were encountered: