mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
fix: loading flashes
This commit is contained in:
@@ -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 ?? [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user