Fix perf with cache

This commit is contained in:
2025-10-10 03:42:57 +07:00
parent bdda24cb60
commit b6b11be33a
13 changed files with 1646 additions and 32 deletions

View File

@@ -59,7 +59,7 @@ export const useCurrentUser = () => {
}
store.setLoading(query.isLoading)
store.setError(query.error as Error | null)
}, [query.data, query.isLoading, query.error, store])
}, [query.data, query.isLoading, query.error])
// Return both TanStack Query data and store state for flexibility
return {