fix: invalidate tanstack caches on user auth (#5341)
* fix: invalidate tanstack caches on user auth * refactor: clean up invalidate flow * fix: lint
This commit is contained in:
@@ -17,15 +17,12 @@ export interface ProjectPageContext {
|
||||
dependencies: Ref<Labrinth.Projects.v2.DependencyInfo | null>
|
||||
dependenciesLoading: Ref<boolean>
|
||||
|
||||
// Refresh functions (invalidate + refetch)
|
||||
refreshProject: () => Promise<void>
|
||||
refreshVersions: () => Promise<void>
|
||||
refreshMembers: () => Promise<void>
|
||||
refreshOrganization: () => Promise<void>
|
||||
// Invalidate all project queries (auto-refetches active ones)
|
||||
invalidate: () => Promise<void>
|
||||
|
||||
// Lazy loading
|
||||
loadVersions: () => Promise<void>
|
||||
loadDependencies: () => Promise<void>
|
||||
loadVersions: () => void
|
||||
loadDependencies: () => void
|
||||
|
||||
// Mutation functions
|
||||
patchProject: (data: Record<string, unknown>, quiet?: boolean) => Promise<boolean>
|
||||
|
||||
Reference in New Issue
Block a user