Skip to content

Commit

Permalink
fix: debug and user login retry
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jan 20, 2024
1 parent 2f43ece commit 723da65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions composables/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function useUser() {
queryKey: queryKeyFactory.currentUser,
queryFn: () => $api<User>(`/api/user/${firebaseCurrentUser.value?.uid}`),
enabled: computed(() => !!firebaseCurrentUser.value), // Only run when user exists
retry: false,
})
}

Expand Down

0 comments on commit 723da65

Please # to comment.