perf: virtual list was rendering every single item and then destroying

This commit is contained in:
Xylight committed 2026-06-11 12:17:50 -07:00
1 parent 62f2fe80f7
commit aca4a3e06a
4 files changed
+77 -49

No files matched your search

+6 -1
View File
@@ -104,7 +104,12 @@
bind:posts
bind:lastSeen={() => client.lastSeen ?? 0, (v) => (client.lastSeen = v)}
bind:params={getParams}
virtualList={{ itemHeights: client?.itemHeights ?? [] }}
bind:virtualList={
() => ({ itemHeights: client.itemHeights ?? [] }),
(v) => {
if (v) client.itemHeights = v.itemHeights
}
}
/>
<svelte:element
this={settings.infiniteScroll && !settings.posts.noVirtualize