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 Crash after Clicking Table Header and Infinite Re-renders #5845

Open
2 tasks done
TryV opened this issue Dec 22, 2024 · 2 comments
Open
2 tasks done

Page Crash after Clicking Table Header and Infinite Re-renders #5845

TryV opened this issue Dec 22, 2024 · 2 comments

Comments

@TryV
Copy link

TryV commented Dec 22, 2024

TanStack Table version

8.20.6

Framework/Library version

React v19.0.0

Describe the bug and the steps to reproduce it

Description:

Clicking on a column header in table triggers infinite re-renders, causing the page to freeze and become unresponsive.

Steps to Reproduce:

  1. Visit the provided sample project: https://stackblitz.com/edit/vitejs-vite-6zsufvts?file=src%2FApp.tsx&terminal=dev
  2. Open the console.
  3. Click on any column header in the table.

Expected Behavior:

Clicking on a column header should sort the data and re-render the table efficiently, maintaining page responsiveness.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://stackblitz.com/edit/vitejs-vite-6zsufvts?file=src%2FApp.tsx&terminal=dev

Screenshots or Videos (Optional)

No response

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.
@TryV
Copy link
Author

TryV commented Dec 28, 2024

Is anyone still working on this repo?

I made the sandbox sample a little bit more clear:
https://stackblitz.com/edit/vitejs-vite-j8bz8hb3?file=src%2FApp.tsx

@vitoremanuelqf
Copy link

I am facing the same issue. In my list of items, this rendering loop happens when I delete the last item in the list, leaving it with zero items. Then it enters a loop and freezes the page. It seems to occur in the .getRowModel() method.

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

2 participants