Why change the word in all messages?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
11 views
Hi guys. Practice React
While doing the table: https://codesandbox.io/s/yjqq555689

When they click DeleteI have a message Row 0 deletedwhen you press Restore, it displays Row 0 restored, BUT erased the message above and I have 2 restored, instead of what would be 1 deleted and 1 restored

Why?
Perhaps because of the reference to state productList?
by | 11 views

1 Answer

0 like 0 dislike
You take deleted from the array productsList, respectively, at the same time different values can not be. It is necessary that each element had its history deleted - and use it. Type so.
by

Related questions

0 like 0 dislike
2 answers
asked Apr 10, 2019 by mr_drinkens89
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users