afterChange work wrong

Tags: #<Tag:0x00007efc61e7f888> #<Tag:0x00007efc61e7f748>

const [items , setItems] = useState([])
const emptyItem = {name: “” , status: “”}

fetch function => setItems([{},{},…])

const KeyDown =(e) => {
if(e.key === “Insert”) { setITems(prev => […prev, emptyItem]) }
}

when i change new row value emptyItem value changed too. Why ?

Hi @munkhtulgaworks

I am not able to reproduce the issue basing on the code you sent. Can you please prepare a code demo showing the issue?

Hi @munkhtulgaworks

do we have any updates here?