mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
[Manager] Fix bug: installed packs metadata not re-fetched after installations (#4254)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { whenever } from '@vueuse/core'
|
||||||
import { computed, onUnmounted } from 'vue'
|
import { computed, onUnmounted } from 'vue'
|
||||||
|
|
||||||
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
|
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
|
||||||
@@ -23,6 +24,11 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
|
|||||||
await startFetch()
|
await startFetch()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// When installedPackIds changes, we need to update the nodePacks
|
||||||
|
whenever(installedPackIds, async () => {
|
||||||
|
await startFetch()
|
||||||
|
})
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
cleanup()
|
cleanup()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user