[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
})