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 39e1194 commit 8f0c28fCopy full SHA for 8f0c28f
app/composables/useInstallSizeDiff.ts
@@ -69,8 +69,8 @@ export function useInstallSizeDiff(
69
70
if (import.meta.client) {
71
watch(
72
- comparisonVersion,
73
- v => {
+ [comparisonVersion, () => toValue(packageName)],
+ ([v]) => {
74
if (v) fetchComparisonSize()
75
},
76
{ immediate: true },
@@ -83,6 +83,7 @@ export function useInstallSizeDiff(
83
const cv = comparisonVersion.value
84
85
if (!current || !previous || !cv) return null
86
+ if (previous.version !== cv || previous.package !== toValue(packageName)) return null
87
88
const sizeRatio =
89
previous.totalSize > 0 ? (current.totalSize - previous.totalSize) / previous.totalSize : 0
0 commit comments