[Manager] Fix flush timing issue when switching tabs (#4253)

This commit is contained in:
Christian Byrne
2025-06-23 03:49:47 -07:00
committed by GitHub
parent 24cbc41832
commit 886e4908d4
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ const updateItemSize = () => {
}
const onResize = debounce(updateItemSize, resizeDebounce)
watch([width, height], onResize, { flush: 'post' })
whenever(() => items, updateItemSize)
whenever(() => items, updateItemSize, { flush: 'post' })
onBeforeUnmount(() => {
onResize.cancel() // Clear pending debounced calls
})

View File

@@ -59,7 +59,7 @@
<VirtualGrid
id="results-grid"
:items="resultsWithKeys"
:buffer-rows="3"
:buffer-rows="4"
:grid-style="GRID_STYLE"
@approach-end="onApproachEnd"
>