Skip to content

Commit 69c5c18

Browse files
committed
auth: disable prefetch on header links ( prevent auto-logout)
1 parent 9604db6 commit 69c5c18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/component-library/Pages/Layout/AccountDropdown.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const AccountDropdown = forwardRef(function AccountDropdown
3434
"text-right"
3535
)}
3636
href="/accountsettings"
37+
prefetch={false}
3738
>
3839
<HiCog className="text-3xl text-gray-600 dark:text-gray-100 shrink-0" />
3940
<span>
@@ -58,6 +59,7 @@ export const AccountDropdown = forwardRef(function AccountDropdown
5859
)}
5960
key={index}
6061
href="/switchaccount"
62+
prefetch={false}
6163
>
6264
<HiSwitchHorizontal className="text-2xl dark:text-gray-100 shrink-0" />
6365
<span>
@@ -78,6 +80,7 @@ export const AccountDropdown = forwardRef(function AccountDropdown
7880
"w-64 sm:w-96"
7981
)}
8082
href="/api/auth/logout"
83+
prefetch={false}
8184
>
8285
<b>Logout</b> <HiLogout className="text-3xl shrink-0" />
8386
</Link>

0 commit comments

Comments
 (0)