T
TanStack3y ago
modern-teal

Svelte-virtual: stuck in infinite render

I'm trying to use tanstack/table with tanstack/virtual and using an actual table element, everything is working as expected except when I scroll all the way down and get stuck into a loop and my table starts to jump up and down:
⏱ 0 / 0 ms calculateRange
⏱ 0 / 0 ms maybeNotify
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms calculateRange
⏱ 0 / 0 ms maybeNotify
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms calculateRange
⏱ 0 / 0 ms maybeNotify
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms maybeNotify
⏱ 0 / 0 ms calculateRange
⏱ 0 / 0 ms maybeNotify
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms calculateRange
⏱ 0 / 0 ms maybeNotify
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms calculateRange
⏱ 0 / 0 ms maybeNotify
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms getIndexes
⏱ 0 / 0 ms maybeNotify
The code that might be relevant can be found here: https://pastebin.com/8E0PWLuY Has anyone faced a similar issue? What might I be doing wrong?
Pastebin
``` let rowVirtualizer: ReturnType<typeof createVirt - Pastebin...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?