Files
oxc-project__oxc/crates/oxc_react_compiler/tests/snapshots/capturing-func-alias-computed-mutate.snap
2026-08-20 07:19:24 +00:00

35 lines
621 B
Plaintext

---
source: crates/oxc_react_compiler/tests/snapshot.rs
input_file: crates/oxc_react_compiler/fixtures/capturing-func-alias-computed-mutate.js
---
import { c as _c } from "react/compiler-runtime";
import { mutate } from "shared-runtime";
function Component(t0) {
const $ = _c(2);
const { a } = t0;
let y;
if ($[0] !== a) {
const x = { a };
y = {};
const f0 = function() {
y["x"] = x;
};
f0();
mutate(y);
$[0] = a;
$[1] = y;
} else {
y = $[1];
}
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{ a: 2 }],
sequentialRenders: [
{ a: 2 },
{ a: 2 },
{ a: 3 }
]
};