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

Uncaught Error: Maximum update depth exceeded. When we add styles for first row. #676

Open
2 tasks done
barugass opened this issue Feb 22, 2024 · 0 comments
Open
2 tasks done

Comments

@barugass
Copy link

barugass commented Feb 22, 2024

Describe the bug

When virtualizing rows in @tanstack/table, if you add styles for the first row(:first-child) that change the height of the row and start scrolling, the calculation breaks down and the application crashes because it cannot calculate the height and goes into an infinity loop.

Your minimal, reproducible example

https://stackblitz.com/edit/tanstack-table-vduexv?file=src%2Findex.css

Steps to reproduce

  1. Add styles for the first row( tr:first-child { padding: 8px; or border: 1px solid lightgray; } )
  2. Start scrolling the table.
  3. An error has occurred.

Expected behavior

The application did not crash.

How often does this bug happen?

Every time

Screenshots or Videos

Снимок экрана 2024-02-22 в 11 33 20 AM

Platform

OS: macOS Browser: Chrome

tanstack-virtual version

v3.1.2

TypeScript version

No response

Additional context

No response

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.
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

1 participant