[Manager] Fix bug: installed packs metadata not re-fetched after installations (#4254)

This commit is contained in:
Christian Byrne
2025-06-23 04:37:50 -07:00
committed by GitHub
parent 886e4908d4
commit 6cf77a9814

View File

@@ -1,3 +1,4 @@
import { whenever } from '@vueuse/core'
import { computed, onUnmounted } from 'vue'
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
@@ -23,6 +24,11 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
await startFetch()
}
// When installedPackIds changes, we need to update the nodePacks
whenever(installedPackIds, async () => {
await startFetch()
})
onUnmounted(() => {
cleanup()
})