afterChange work wrong

Tags: #<Tag:0x00007fce6a4be9f8> #<Tag:0x00007fce6a4be8b8>

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?