The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 06:45 UTC
perf(web): the T3 Connect account pages hook compiles without manual memoization (#20611)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 22:01 UTC
e08b38a9f8fa3071f0c3a150cd6187448dc66b8a
1 file changed
+3
-3
apps/web/src/components/clerk/T3ConnectAccountPages.tsx
+3
-3
@@ -1,6 +1,6 @@
1
import { useAuth, useClerk } from "@clerk/react";
2
import { ServerIcon, SmartphoneIcon } from "lucide-react";
3
-import { type ReactNode, useCallback, useState } from "react";
3
+import { type ReactNode, useState } from "react";
4
import { createPortal } from "react-dom";
5
6
import { MobileClientsUserProfilePage } from "./MobileClientsUserProfilePage";
@@ -35,7 +35,7 @@ export function useT3ConnectAccountPage(): {
35
const { isSignedIn } = useAuth();
36
const [targets, setTargets] = useState<PortalTargets>({});
37
38
- const open = useCallback(() => {
38
+ const open = () => {
39
const setTarget = (key: string, element: HTMLDivElement | undefined) =>
40
setTargets((current) => ({ ...current, [key]: element }));
41
clerk.openUserProfile({
@@ -49,7 +49,7 @@ export function useT3ConnectAccountPage(): {
49
unmountIcon: () => setTarget(`icon:${page.url}`, undefined),
50
})),
51
});
52
- }, [clerk]);
52
+ };
53
54
const portals = T3_CONNECT_ACCOUNT_PAGES.flatMap((page) => {
55
const content = targets[`content:${page.url}`];