Skip to content

Commit 41552fb

Browse files
perf(web): SnapShot setup dialog compile with the React Compiler
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 9fe836b commit 41552fb

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎apps/web/reactCompiledFiles.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ export const REACT_COMPILED_FILES = [
7878
"apps/web/src/components/settings/TelemetryExportSettings.tsx",
7979
"apps/web/src/components/settings/useHostConnectionChecks.ts",
8080
"apps/web/src/components/settings/useProjectScriptSettings.ts",
81+
"apps/web/src/components/settings/SnapShotSetupDialog.tsx",
8182
] as const;

‎apps/web/src/components/settings/SnapShotSetupDialog.tsx‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,8 @@ export function SnapShotSetupDialog({
138138
if (busy) return;
139139
setChecking(true);
140140
setChecked(false);
141-
try {
142-
setChecked((await onRefresh()) !== undefined);
143-
} finally {
144-
setChecking(false);
145-
}
141+
const refreshed = await onRefresh().finally(() => setChecking(false));
142+
setChecked(refreshed !== undefined);
146143
};
147144
const accessCopy =
148145
state.message && !macPermissions

0 commit comments

Comments
 (0)