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


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
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.
Was this page helpful?