Closed yepitschunked closed 1 month ago
React compiler is compiling
async function MyApp({ something }) { for await (const deferredState of foo) { // do stuff } }
into
async function MyApp(t0) { for (const deferredState of foo) { } }
i.e the for await became a regular for.
for await
for
https://playground.react.dev/#N4Igzg9grgTgxgUxALhAQzATwHZwAQBmUuALgJYTZ4CymAggA4MAUwekAtgiQBZnYBzPAF8AlHmAAdKoQgw8aAO5oyJPMziUwagCYICCGDAQ6AyiTQkEeCAVkRxUmXjwB6V3h0R2JKAQLSLsLSwdggwkA
Thanks for the heads up!
Fixed, thanks again for reporting!
Summary
React compiler is compiling
into
i.e the
for await
became a regularfor
.https://playground.react.dev/#N4Igzg9grgTgxgUxALhAQzATwHZwAQBmUuALgJYTZ4CymAggA4MAUwekAtgiQBZnYBzPAF8AlHmAAdKoQgw8aAO5oyJPMziUwagCYICCGDAQ6AyiTQkEeCAVkRxUmXjwB6V3h0R2JKAQLSLsLSwdggwkA