fix: loading flashes

This commit is contained in:
Calum H. (IMB11)
2026-07-28 19:11:45 +01:00
parent 9cf351e6bc
commit 65efc25d15
4 changed files with 30 additions and 5 deletions
@@ -642,6 +642,21 @@ const projects = computed<ResolvedProject[]>(() =>
resolvedProjectType: resolveProjectType(project, tags?.loaders.value ?? []),
})),
)
watch(
() => projectsQuery.data.value,
(projects) => {
if (props.projectLinkMode !== 'app') return
for (const project of projects ?? []) {
for (const identifier of [project.id, project.slug]) {
if (identifier) {
queryClient.setQueryData(['projects', 'summary', identifier], project)
}
}
}
},
{ immediate: true },
)
const organizations = computed(() => organizationsQuery.data.value ?? [])
const collections = computed(() => collectionsQuery.data.value ?? [])