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

Table using insane amount of memory even with virtualisation when scrolling #5696

Open
2 tasks done
currents-jantu opened this issue Aug 6, 2024 · 2 comments
Open
2 tasks done

Comments

@currents-jantu
Copy link

TanStack Table version

8.10.0

Framework/Library version

18.2.0

Describe the bug and the steps to reproduce it

Table using more than 2gbs of memory when scrolling with (2000*2000) virtualized row columns. It's seems to be memoization causing this.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/devbox/clever-leftpad-d4vwhh

Screenshots or Videos (Optional)

No response

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

No, because I do not know how

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

You might want to take a look at this.

https://tanstack.com/table/latest/docs/faq#pitfall-1-creating-new-columns-or-data-on-every-render

Just move tableData outside the component and it will be fine.

@currents-jantu
Copy link
Author

You might want to take a look at this.

https://tanstack.com/table/latest/docs/faq#pitfall-1-creating-new-columns-or-data-on-every-render

Just move tableData outside the component and it will be fine.

Thanks for the help. I have converted the tableData variable to a state, but the issue still persists. Updated the sandbox also.

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