The best way to control Claude Code, Codex and more from any computer or phone
perf(web): the open-source notices panel compiles with the React Compiler (#20608)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 22:01 UTC
89a24e8d97b2c8beff1a24bc99a1421feaf24421
1 file changed
+6
-9
apps/web/src/components/settings/OpenSourceLicenses.tsx
+6
-9
@@ -1,5 +1,5 @@
1
import { ChevronRightIcon, ExternalLinkIcon, SearchIcon } from "lucide-react";
2
-import { useCallback, useEffect, useMemo, useState } from "react";
2
+import { useEffect, useState } from "react";
3
4
import {
5
decodeThirdPartyLicenseManifest,
@@ -215,11 +215,11 @@ export function OpenSourceLicensesPanel() {
215
const [query, setQuery] = useState("");
216
const [searchOpen, setSearchOpen] = useState(false);
217
const [openEntryKey, setOpenEntryKey] = useState<string | null>(null);
218
- const [requestVersion, setRequestVersion] = useState(0);
218
+ const loading = state.status === "loading";
219
220
useEffect(() => {
221
+ if (!loading) return;
222
let cancelled = false;
222
- setState({ status: "loading" });
223
void loadLicenseManifest().then(
224
(manifest) => {
225
if (!cancelled) setState({ status: "ready", manifest });
@@ -235,14 +235,11 @@ export function OpenSourceLicensesPanel() {
235
return () => {
236
cancelled = true;
237
};
238
- }, [requestVersion]);
238
+ }, [loading]);
239
240
const entries = state.status === "ready" ? state.manifest.entries : [];
241
- const filteredEntries = useMemo(
242
- () => filterThirdPartyLicenseEntries(entries, query),
243
- [entries, query],
244
- );
245
- const retry = useCallback(() => setRequestVersion((value) => value + 1), []);
241
+ const filteredEntries = filterThirdPartyLicenseEntries(entries, query);
242
+ const retry = () => setState({ status: "loading" });
243
244
return (
245
<SettingsPageContainer>