Skip to content

Commit

Permalink
Merge pull request #1217 from andrew-bierman/fix/sending-alot-of-getMes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-bierman authored Sep 5, 2024
2 parents faba5ae + 88b126e commit 844a027
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app/modules/auth/hooks/useUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const useUserQuery = () => {
isLoading: isRequestLoading,
} = queryTrpc.getMe.useQuery(undefined, {
enabled: isRequestEnabled,
staleTime: Infinity,
cacheTime: Infinity,
});

// Sometimes the isLoading state don't work as expected so we have this solution here
Expand Down

0 comments on commit 844a027

Please sign in to comment.