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: keyed map lowering can evaluate the key before JSX props and children #2456
Run the codemod with project types and Strong verification on this React module. Build the original with esbuild's automatic React JSX runtime and run both outputs in production SSR.
React evaluates the props and child before the separate key argument in each callback. The first span has data-before="-" and text -. The codemod emits a clean Strong @for, whose header reads the key first. The first span has data-before="a" and text a.
Verified with the codemod source at 6cdbc952c, Octane 0.16.7 and React and React DOM 19.2.7. The callback has no setup statements, so the setup check in #2453 does not cover this case.
Expected
Preserve the observable order of key, prop and child evaluation when rewriting the map. Keep the list in compatibility mode where the transform cannot preserve that order.
Activity