You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I resize the window, items should rerender with new size
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
macOS
tanstack-virtual version
latest
TypeScript version
5.2.2
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.
The text was updated successfully, but these errors were encountered:
jijiseong
changed the title
Even though the useVirtualize option changes, useVirtualize doesn't re-render.
Not support about responsive size?
Sep 5, 2024
jijiseong
changed the title
Not support about responsive size?
Not support responsive size?
Sep 5, 2024
I have the same issue in my app where I'm trying to figure out a case where mobile is turned on it's side. Currently this throws off the scroll position as items and screen resizes.
Describe the bug
I use useVirtualize with
useWindowSize
for the responsive item size.Even though the width is changed,
columnVirtualizer
doesn`t rerendered.There is the code about the
Virtualizer instance
inuseVirtualizerBase
(/pacakges/react-virtual/src/index.tsx, line:39)Even if resolvedOptions have changed, initializing the instance only once.
Is this intentional?
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/rough-tdd-4wfpkr
Steps to reproduce
Refer to codesand box
Expected behavior
When I resize the window, items should rerender with new size
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
macOS
tanstack-virtual version
latest
TypeScript version
5.2.2
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: