The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 07:15 UTC
fix(mobile): install Intl polyfills before crash reporting (#38942)
Julius Marminge committed
Nov 18, 2026 at 21:02 UTC
082bc2cb7acdb12ce6d015f9709f648afaedbe01
2 files changed
+3
-4
apps/mobile/index.ts
+3
-3
@@ -1,15 +1,15 @@
1
// Must stay first: the render counter and behavior probe wrap the DevTools hook before any React commit.
2
import "./src/features/development/render-counter-entry";
3
import "./src/features/development/behavior-probe-entry";
4
-// Next, so errors thrown while the rest of the app loads are recorded too.
4
+// Crash reporting loads preferences, which can load GT and capture Hermes's Intl constructors.
5
+import "./src/i18n/intl-polyfills";
6
+// Record errors thrown while the rest of the app loads.
7
import "./src/features/observability/observe";
8
import { registerRootComponent } from "expo";
9
import "react-native-gesture-handler";
10
import { LogBox } from "react-native";
11
import { featureFlags } from "react-native-screens";
12
11
-// Before any GT module initializes: GT validates locales with Intl APIs that Hermes lacks.
12
-import "./src/i18n/intl-polyfills";
13
import App from "./src/App";
14
15
// Enables iOS FormSheet sizing for nested native stacks in non-fitToContents sheets.
apps/mobile/src/i18n/I18nProvider.tsx
-1
@@ -1,4 +1,3 @@
1
-import "./intl-polyfills";
1
import { resolveLocaleSelection } from "@t3tools/client-runtime/locales";
2
import { useAtomValue } from "@effect/atom-react";
3
import { AsyncResult } from "effect/reactivity";