fix: caching problems frontend for version upload (#5252)
This commit is contained in:
@@ -1644,11 +1644,13 @@ async function updateProjectRoute() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function resetProject() {
|
async function resetProject() {
|
||||||
|
await invalidateProjectQueries(projectId.value)
|
||||||
await resetProjectV2()
|
await resetProjectV2()
|
||||||
await resetProjectV3()
|
await resetProjectV3()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function resetVersions() {
|
async function resetVersions() {
|
||||||
|
await invalidateProjectQueries(projectId.value)
|
||||||
await resetVersionsV3()
|
await resetVersionsV3()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1659,6 +1661,7 @@ async function invalidateProjectQueries(projectId) {
|
|||||||
await queryClient.invalidateQueries({ queryKey: ['project', 'v2', projectId] })
|
await queryClient.invalidateQueries({ queryKey: ['project', 'v2', projectId] })
|
||||||
}
|
}
|
||||||
await queryClient.invalidateQueries({ queryKey: ['project', 'v3', projectId] })
|
await queryClient.invalidateQueries({ queryKey: ['project', 'v3', projectId] })
|
||||||
|
await queryClient.invalidateQueries({ queryKey: ['project', projectId, 'versions', 'v3'] })
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mutation for patching project data
|
// Mutation for patching project data
|
||||||
|
|||||||
Reference in New Issue
Block a user