Open kulogix opened 5 months ago
Hmm. Ok.
Maybe there is such an error. When writing this component, I didn't really have a use case of tens of thousands of rows. The datasets I used were about 1k records max. So maybe that's why the error didn't manifest.
As for your use case, I won't look at the issue because I really don't have any intention of further developing this library. It seems to be stable for my particular use case — https://anychans.github.io/4chan/a — and that suffices. Anything beyond that is out of scope for me personally.
When grabbing scrollbar and directly scrolling to far position in large list (e.g., skipping ~ 40k single-line records), getting "maximum call stack size exceeded". Doesn't happen if done in smaller batches (~ 30k), and doesn't happen if smaller batches are first pre-loaded, then skip to top and all the way back to bottom.
Tested on Chrome / macOS M3 Max (128GB). When tested on Safari, it runs much slower but doesn't error out (eventually completes successfully).
See below for example code (based on AlpineJS).