You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codemod bypasses a runtime Array.map override when emitting @for #2496
Migrating JSX that calls rows.map(callback) preserves that method dispatch and the rendered result. When the codemod cannot preserve the call, it should leave the migration unresolved and explain why.
Reproduction
I reproduced this with the codemod built from main at 0d651902818c6011e1d86d3b52bce6739ec11b52, React 19.2.7, and Octane 0.16.7. Run the codemod with strong: true and verify: true. The result is the same with project types enabled or disabled.
React production SSR renders <main>react-row</main> and records [true] in calls.
The codemod reports a clean Strong migration and emits @for (const row of rows; key row.id). Production Octane SSR renders the <b data-marker="row">row</b> directly. The array's method never runs.
Both paths render the expected <b> with an unmodified array.
The receiver's Array annotation does not prove which method it uses at runtime. A preserving fallback must also account for custom methods that observe the React element passed back by the callback. The source-visible custom and sparse cases in #2484 cover a separate set of receivers.
Activity