You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given this change facebook/react#14752 mutating state (arrays or objects) no longer works at all. New objects must be constructed every time with Object.assign, or if arrays are used they must be cloned, mutated and returned.
Examples of doing that with both objects and arrays would be helpful, especially with the form that takes a function:
Given this change facebook/react#14752 mutating state (arrays or objects) no longer works at all. New objects must be constructed every time with Object.assign, or if arrays are used they must be cloned, mutated and returned.
Examples of doing that with both objects and arrays would be helpful, especially with the form that takes a function:
https://twitter.com/sudhirj/status/1093586382713348096
The text was updated successfully, but these errors were encountered: