Files

11 lines
258 B
JavaScript
Raw Permalink Normal View History

2026-08-27 21:09:14 +00:00
function Component(props) {
let x = cond ? someGlobal : props.foo;
const mutatePhiThatCouldBeProps = () => {
x.y = true;
};
const indirectMutateProps = () => {
mutatePhiThatCouldBeProps();
};
useEffect(() => indirectMutateProps(), []);
}