From 6cf77a981452c2acd00f71fee96c88be2c1609fa Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Mon, 23 Jun 2025 04:37:50 -0700 Subject: [PATCH] [Manager] Fix bug: installed packs metadata not re-fetched after installations (#4254) --- src/composables/nodePack/useInstalledPacks.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/composables/nodePack/useInstalledPacks.ts b/src/composables/nodePack/useInstalledPacks.ts index eb51bdf8d..fd671d33b 100644 --- a/src/composables/nodePack/useInstalledPacks.ts +++ b/src/composables/nodePack/useInstalledPacks.ts @@ -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() })