Files
orca/src
OrcaWinandOrcaWin 07e55b91f7 refactor(renderer): spell out logical assignments React Compiler can't lower yet (#39339)
React Compiler skips any function containing `??=`, `||=` or `&&=`. Rewrite
the statement-position ones whose target re-reads without side effects
(identifiers and plain member chains) as the equivalent `if`:

  a ??= b  ->  if (a == null) { a = b }
  a ||= b  ->  if (!a) { a = b }
  a &&= b  ->  if (a) { a = b }

21 files; 25 fewer bailouts and 12 more compiled functions in the
compiler-compat baseline.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 02:59:48 -08:00
..