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
The text was updated successfully, but these errors were encountered:
couzic
changed the title
.updates(): allow a handler to return null to prevent a state update
.updates(): allow a handler to return null or false to prevent a state update
Dec 14, 2018
Currently, one can return (state) => state
Returning
null
would look like:Returning
false
would look like:The text was updated successfully, but these errors were encountered: