Repository navigation
Conversation
|
Saw your tweets, figure I'd provide some more insight into the use case. (also edited the title, didn't mean this to come across as a bug accusation, it's definitely a feature request) |
Oh, whoops! Sorry if my tweet seemed like I was poking fun at this issue. I didn't mean to! I was just really amused that someone was pushing RV that hard. I don't think that even I have tried to do that 😁
No worries. I didn't read it as an accusation, just an extreme edge-case. By the way, I changed some Prettier config this morning. You'll want to merge in and run |
|
Sorry for the very long delay in getting back to you about this! I've just finished a large update for version 10 of react-virtualized (#1900): the library has been rewritten in TypeScript, every component is now a function component (React 18+ is required), and the source moved from If you're still interested in this change, I'd welcome a new PR with it rebased onto the |
We have a (somewhat ridiculous) use case for Grid. I'm finding that chrome runs out of memory when scrolling through sets with around 1 billion rows.
It fails in
getSizeAndPositionOfCellon the loop that caches the size of every row up to the new position, this behavior seems unnecessary when the height of rows is consistently known or fixed.Passing a callback through to
CellSizeAndPositionManagerthat will provide "range" sizes is one solution I've found that seems to be working.A cleaner solution might be to have
CellSizeAndPositionManagertoggle it's logic based on knowing that cell sizes are fixed (return the fixed size * number of rows). I played with the callback solution first just because it's a simpler implementation for grids with fixed heights on everything but the header.Open to suggestions!