Screen crashes the whole app: Rendered more hooks than during the previous render
React NativeConfirmed fix
React 19
Error
Rendered more hooks than during the previous renderCause
A useMemo was added below the if (isLoading) return / if (error) return early returns. The loading render called 6 hooks, the data render 7. tsc does not catch this.
Fix
Move every hook above the early returns. Run eslint-plugin-react-hooks (react-hooks/rules-of-hooks: error) before shipping any edit that adds or moves a hook. If it is already in production, roll back first:
shell
eas update:roll-back-to-embedded --branch production --runtime-version <v> --platform iosMore React Native errors
- Feed shows an error state for every address: ReferenceError before initializationReferenceError: Cannot access 'scoreById' before initialization
- Screen crash: Maximum update depth exceededError: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate.
- Reanimated crash on device: Tried to synchronously call a non-worklet function on the UI thread[Worklets] Tried to synchronously call a non-worklet function `clamp01` on the UI thread.
- Rows wrapped in <Link asChild> collapse to a tiny height
- Pressable buttons render invisible: style function fill never applied