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(), []);
|
|
|
|
|
}
|