"The risk of using a shallow copy only exists if the operation you are performing changes the data, as this will result in a direct mutation of the react state bypassing setState, which can cause side effects such as state not matching rendered results."
"The risk of using a shallow copy only exists if the operation you are performing changes the data, as this will result in a direct mutation of the react state bypassing setState, which can cause side effects such as state not matching rendered results."
rawwell のブックマーク 2022/04/09 18:47
このブックマークにはスターがありません。
最初のスターをつけてみよう!
What are risks or side effects of doing shallow copy when updating state in functional component?
stackoverflow.com2022/04/09
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /