TypeScript
perf(web): SnapShot setup dialog compile with the React Compiler (#20503)
Julius Marminged1c2346eec23
diff --git a/apps/web/reactCompiledFiles.ts b/apps/web/reactCompiledFiles.tsindex 8b31df8fd7d..b58f199c279 100644--- a/apps/web/reactCompiledFiles.ts+++ b/apps/web/reactCompiledFiles.ts@@ -78,4 +78,5 @@ export const REACT_COMPILED_FILES = ["apps/web/src/components/settings/TelemetryExportSettings.tsx","apps/web/src/components/settings/useHostConnectionChecks.ts","apps/web/src/components/settings/useProjectScriptSettings.ts",+ "apps/web/src/components/settings/SnapShotSetupDialog.tsx",] as const;diff --git a/apps/web/src/components/settings/SnapShotSetupDialog.tsx b/apps/web/src/components/settings/SnapShotSetupDialog.tsxindex c6003adc740..bf078c74bf9 100644--- a/apps/web/src/components/settings/SnapShotSetupDialog.tsx+++ b/apps/web/src/components/settings/SnapShotSetupDialog.tsx@@ -138,11 +138,8 @@ export function SnapShotSetupDialog({if (busy) return;setChecking(true);setChecked(false);- try {- setChecked((await onRefresh()) !== undefined);- } finally {- setChecking(false);- }+ const refreshed = await onRefresh().finally(() => setChecking(false));+ setChecked(refreshed !== undefined);};const accessCopy =state.message && !macPermissions