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

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

perf(mobile): Connect onboarding compiles with the React Compiler (#20970)

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

Julius Marminge committed Oct 17, 2026 at 20:12 UTC fe77d643ef8a9abacfa76aeaeb6183a89ac4e1ce
2 files changed +9 -16
apps/mobile/src/features/cloud/ConnectOnboardingRouteScreen.tsx
+9 -15
@@ -3,7 +3,7 @@ import { ScreenScrollView as ScrollView } from "../../components/ui/ScreenScroll
3
4 import { useAuth } from "@clerk/expo";
5 import { StackActions, useNavigation } from "@react-navigation/native";
6 -import { useCallback, useEffect, useState } from "react";
6 +import { useEffect, useState } from "react";
7 import { Platform, Pressable, RefreshControl, View } from "react-native";
8 import { useSafeAreaInsets } from "react-native-safe-area-context";
9
@@ -49,24 +49,18 @@ function ConfiguredConnectOnboardingRouteScreen() {
49 });
50
51 const [isRefreshing, setIsRefreshing] = useState(false);
52 - const handleRefresh = useCallback(() => {
53 - void (async () => {
54 - setIsRefreshing(true);
55 - try {
56 - await refreshRelayEnvironments();
57 - } finally {
58 - setIsRefreshing(false);
59 - }
60 - })();
61 - }, [refreshRelayEnvironments]);
52 + const handleRefresh = () => {
53 + setIsRefreshing(true);
54 + void refreshRelayEnvironments().finally(() => setIsRefreshing(false));
55 + };
56
63 - const handleClose = useCallback(() => {
57 + const handleClose = () => {
58 navigation.goBack();
65 - }, [navigation]);
59 + };
60
61 // Persist before dismissing so a quick sign-out/sign-in cannot race ahead
62 // of the preference write; the write is a local secure-store update.
69 - const handleDontShowAgain = useCallback(() => {
63 + const handleDontShowAgain = () => {
64 void (async () => {
65 if (userId) {
66 const result = await settlePromise(() => optOutOfConnectOnboarding(userId));
@@ -74,7 +68,7 @@ function ConfiguredConnectOnboardingRouteScreen() {
68 }
69 navigation.goBack();
70 })();
77 - }, [navigation, userId]);
71 + };
72
73 return (
74 <View collapsable={false} className="flex-1 bg-sheet">
apps/mobile/src/reactCompilerCoverage.test.ts
-1
@@ -25,7 +25,6 @@ const KNOWN_BAILOUTS: Record<string, string> = {
25 "src/components/ui/AndroidAnchoredMenu.tsx": "ref read during render",
26 "src/components/ui/Menu.tsx": "ref read during render",
27 "src/components/ui/OverlayPortal.tsx": "unsupported syntax",
28 - "src/features/cloud/ConnectOnboardingRouteScreen.tsx": "try without catch",
28 "src/features/connection/ConnectionsNewRouteScreen.tsx": "try without catch",
29 "src/features/devices/DevicePreviewRouteScreen.tsx": "try without catch",
30 "src/features/diffs/nativeReviewDiffSurface.ts": "ref read during render",