We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886e490 commit 6cf77a9Copy full SHA for 6cf77a9
src/composables/nodePack/useInstalledPacks.ts
@@ -1,3 +1,4 @@
1
+import { whenever } from '@vueuse/core'
2
import { computed, onUnmounted } from 'vue'
3
4
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
@@ -23,6 +24,11 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
23
24
await startFetch()
25
}
26
27
+ // When installedPackIds changes, we need to update the nodePacks
28
+ whenever(installedPackIds, async () => {
29
+ await startFetch()
30
+ })
31
+
32
onUnmounted(() => {
33
cleanup()
34
})
0 commit comments