442 B
442 B
Input
function Component(props) {
let x = [1, 2, 3];
do {
mutate(x);
break;
} while (props.cond);
return x;
}
Code
import { c as _c } from "react/compiler-runtime";
function Component(props) {
const $ = _c(1);
let x;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
x = [1, 2, 3];
mutate(x);
$[0] = x;
} else {
x = $[0];
}
return x;
}