Comments (3)
I seem to have found a temporary workaround.
In your
useVirtualizer
you can setoverscan
to a relatively high number. This atleasts allows users to scroll that many items before it starts to glitch.const rowVirtualizer = useVirtualizer({ count: 1000, getScrollElement: () => scrollWrapper.value, estimateSize: () => 40, overscan: 100, });
So sad workaround 😢
tanstack/virtual api looks great, but because of this error, it is impossible to use
from virtual.
I seem to have found a temporary workaround.
In your useVirtualizer
you can set overscan
to a relatively high number. This atleasts allows users to scroll that many items before it starts to glitch.
const rowVirtualizer = useVirtualizer({
count: 1000,
getScrollElement: () => scrollWrapper.value,
estimateSize: () => 40,
overscan: 100,
});
from virtual.
Happening to me too, I've tried to use this library 3 times for the last year and with no luck because of this exact issue
This last try, seems like not setting an overscan works 2/3 of the time
Also, this other workaround seems to work too #659
EDIT: THIS REALLY FIXED IT: #619 (comment)
from virtual.
Related Issues (20)
- react-virtual v3.0.* is using strict version of virtual-core 3.0.0 HOT 1
- Uncaught Error: Maximum update depth exceeded. When we add styles for first row.
- svelte-virtual: no release created since 3.0.4 HOT 2
- useVirtualizer is not a function error after upgrading to 3.1.2
- Tanstack Virtual freezes when using React DevTools
- useVirtualiser is undefined - build issue HOT 1
- Rendering lag when using virtualised for both rows and columns along with Tanstack/table HOT 2
- Stackblitz not supporting Firefox renders the examples section useless for Firefox users. HOT 1
- VirtualItem measurements are incorrect when getEstimateSize returns a string HOT 1
- Virtualizer.scrollToIndex - Uncaught error when list is empty HOT 6
- useWindowVirtualizer with measureElement, hidden list, and auto-loading items causes getVirtualItems length to go to infinity
- virtualizer.getVirtualItems() return zero items for vanilla js project HOT 3
- Tanstack virtual docs search is broken
- Scroll to not working + warning about flushSync HOT 2
- useVirtualizer not working in Vue Test Utils HOT 2
- flushSync was called from inside a lifecycle method HOT 5
- Infinite loop in Vue adapter when estimated size doesn't match dynamic size HOT 4
- Infinite scroll and virtualization lag HOT 1
- Not working using separated wrapper component HOT 3
- React Compiler: useVirtual results are cached at their initial values HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual.