TanStackT
TanStack2y ago
6 replies
liable-pink

Switching between row and grid

I want to allow my users to switch between row and grid modes, I currently have a row virtualizer with infinite scrolling which works well.
I would like to allow 2-3 items in a row in a grid, depends on screen size.
I have tried setting flex flex-wrap, and all, all in all it seems to "work" but I sometimes get this jumpy-laggy behavior like it's rendering like crazy and I am not sure how to solve it.
Anyone tried to implement something like this?
Was this page helpful?