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): redacted sensitive text compiles without manual memoization (#20621)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 22:00 UTC
99544c9c1904473e234323c90c0a18af62aae4a6
1 file changed
+2
-2
apps/web/src/components/settings/RedactedSensitiveText.tsx
+2
-2
@@ -1,4 +1,4 @@
1
-import { useMemo, useState } from "react";
1
+import { useState } from "react";
2
3
import { cn } from "../../lib/utils";
4
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
@@ -33,7 +33,7 @@ export function RedactedSensitiveText(props: {
33
}) {
34
const [revealed, setRevealed] = useState(false);
35
const value = props.value?.trim();
36
- const redacted = useMemo(() => (value ? redactedPlaceholder(value) : ""), [value]);
36
+ const redacted = value ? redactedPlaceholder(value) : "";
37
38
if (!value) return null;
39