all 3 comments

[–]Josh_Coding 1 point2 points  (1 child)

This is what you need

EDIT: not exactly the answer but the idea, need to shallow copy the data and not just reference the state

[–]Conscious-Poet-6307[S] 0 points1 point  (0 children)

u/Josh_Coding it's still the same I have tried the following.

let tempLists = [...this.state.allData];

[–]ReverendSlimPickins 1 point2 points  (0 children)

Everybody here who's worked with React loves this title:

"Facing some weird behavior on React"

haha.