Skip to content

Commit 5fd65b8

Browse files
committed
perf: use shallowRef for deep data structure
1 parent 98ad210 commit 5fd65b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/pages/package/[[org]]/[name]/versions.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const { data: versionSummary } = useLazyAsyncData(
4242
time: data.time as Record<string, string>,
4343
}
4444
},
45+
{ deep: false },
4546
)
4647
4748
const distTags = computed(() => versionSummary.value?.distTags ?? {})
@@ -51,7 +52,7 @@ const versionTimes = computed(() => versionSummary.value?.time ?? {})
5152
// ─── Phase 2: full metadata (loaded on first group expand) ────────────────────
5253
// Fetches deprecated status, provenance, and exact times needed for version rows.
5354
54-
const fullVersionMap = ref<Map<
55+
const fullVersionMap = shallowRef<Map<
5556
string,
5657
{ time?: string; deprecated?: string; hasProvenance: boolean }
5758
> | null>(null)

0 commit comments

Comments
 (0)