@devries-cameron20 / t3code-1 / commits / b103346ba6
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

perf(web): the combobox compiles without manual memoization (#20696)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 21:48 UTC b103346ba6a3a599c85a8c108f9aa4875c1f4d16
1 file changed +1 -1
apps/web/src/components/ui/combobox.tsx
+1 -1
@@ -20,7 +20,7 @@ function Combobox<Value, Multiple extends boolean | undefined = false>(
20 props: ComboboxPrimitive.Root.Props<Value, Multiple>,
21 ) {
22 const chipsRef = React.useRef<Element | null>(null);
23 - const value = React.useMemo(() => ({ chipsRef, multiple: !!props.multiple }), [props.multiple]);
23 + const value = { chipsRef, multiple: !!props.multiple };
24 return (
25 <ComboboxContext value={value}>
26 <ComboboxPrimitive.Root {...props} />