mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-11-28 00:23:28 +01:00
1.4 KiB
1.4 KiB
Mobile development lifecycle
Hot reload and native module traps
- HMR boundary. The connection runtime HMR wrapper swaps the Effect layer through a writable atom rather than resetting the shared atom registry; resetting the registry drops listeners on mounted consumers that Metro will not rerender.
- Registry-scoped supervisors. Environment supervisor scopes are children of the registry scope so interrupted startup or runtime replacement closes late arrivals instead of leaking sockets.
- Native module
file:copies. Modules underapps/mobile/modules/arefile:dependencies that pnpm copies into its virtual store. Gradle and CocoaPods compile the worktree directly, but Metro bundles the pnpm copy—runvp iafter editing a local module's TypeScript or changes will not appear on device.
React Compiler
Expo enables the compiler through experiments.reactCompiler in app.config.ts (not
babel.config.js), and release builds ship unmemoized bailouts silently (panicThreshold: "NONE").
reactCompilerCoverage.test.ts enforces
compilation across source files and fails on new bailouts or stale entries in KNOWN_BAILOUTS. When
fixing a listed file, remove its entry and manual useMemo/useCallback/memo in the same change
(see Web UI for common rewrites).