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

Page Freezes When Sorting Rows While Real-Time Data Updates #5913

Closed
2 tasks done
lorof opened this issue Feb 7, 2025 · 5 comments
Closed
2 tasks done

Page Freezes When Sorting Rows While Real-Time Data Updates #5913

lorof opened this issue Feb 7, 2025 · 5 comments

Comments

@lorof
Copy link

lorof commented Feb 7, 2025

TanStack Table version

v8.20.6

Framework/Library version

v18.3.1

Describe the bug and the steps to reproduce it

When real-time data updates are happening, the page freezes if I attempt to sort by different columns.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://stackblitz.com/edit/tanstack-table-b2zkakwx?file=package.json

Screenshots or Videos (Optional)

https://streamable.com/umql1i

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
@KevinVandy
Copy link
Member

@lorof
Copy link
Author

lorof commented Feb 11, 2025

https://tanstack.com/table/latest/docs/faq#how-do-i-stop-infinite-rendering-loops

Did you look at the code in StackBlitz? Because I took your source code, and it already uses useMemo, etc. everywhere. I don't understand how your advice is supposed to help me solve the problem.

@riccardoperra
Copy link
Collaborator

@lorof I can't reproduce the issue, the stackblitz seems working fine and the video you linked is not available anymore

@lorof
Copy link
Author

lorof commented Feb 11, 2025

@lorof I can't reproduce the issue, the stackblitz seems working fine and the video you linked is not available anymore

Try clicking on different columns—first numeric ones, then text ones. Sometimes the issue doesn't appear immediately; you may need to click multiple times.

https://imgur.com/a/eaz7Nk3

@KevinVandy
Copy link
Member

I did get it to happen once. I set autoResetPageIndex to false and never saw it again, but can't be sure it's related.

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

3 participants