Skip to content

Commit

Permalink
disable prefetch for api link
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Apr 19, 2024
1 parent 938e0f3 commit 632d174
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export const User = () => {
</Link>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<Link href="/api/auth/logout" className="!text-destructive">
<Link
href="/api/auth/logout"
className="!text-destructive"
prefetch={false}
>
<LogOut className="w-4 mr-2" />
Logout
</Link>
Expand Down

0 comments on commit 632d174

Please sign in to comment.