Prop doesn't update if the atom created after the prop change
XaveScor opened this issue · 0 comments
XaveScor commented
const Component = declareComponent<{x: boolean, y: number}>((props) => {
return ({ctx}) => ctx.spy(props.x) ? ctx.spy(props.y) : 0;
});
<Component x={false} y={1} /> // first render; result 0
<Component x={true} y={2} /> // second render; result 1
Expected result: 2
Actual result: 1