Fix perf with cache
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user