Skip to content

Commit f90c96e

Browse files
perf(web): the T3 Connect account pages hook compiles without manual memoization
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a702563 commit f90c96e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/web/src/components/clerk/T3ConnectAccountPages.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useAuth, useClerk } from "@clerk/react";
22
import { ServerIcon, SmartphoneIcon } from "lucide-react";
3-
import { type ReactNode, useCallback, useState } from "react";
3+
import { type ReactNode, useState } from "react";
44
import { createPortal } from "react-dom";
55

66
import { MobileClientsUserProfilePage } from "./MobileClientsUserProfilePage";
@@ -35,7 +35,7 @@ export function useT3ConnectAccountPage(): {
3535
const { isSignedIn } = useAuth();
3636
const [targets, setTargets] = useState<PortalTargets>({});
3737

38-
const open = useCallback(() => {
38+
const open = () => {
3939
const setTarget = (key: string, element: HTMLDivElement | undefined) =>
4040
setTargets((current) => ({ ...current, [key]: element }));
4141
clerk.openUserProfile({
@@ -49,7 +49,7 @@ export function useT3ConnectAccountPage(): {
4949
unmountIcon: () => setTarget(`icon:${page.url}`, undefined),
5050
})),
5151
});
52-
}, [clerk]);
52+
};
5353

5454
const portals = T3_CONNECT_ACCOUNT_PAGES.flatMap((page) => {
5555
const content = targets[`content:${page.url}`];

0 commit comments

Comments
 (0)