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
ianobermiller
changed the title
Calling setState without getInitialState throws
Calling setState without getInitialState throws when using PureRenderMixin
Mar 5, 2015
Without
getInitialState
,this.state
isnull
, which causes this line inshallowEqual
to throw.Fix is to make shallowEqual bail if either argument is falsey (or not an object if we want to be very safe).
The text was updated successfully, but these errors were encountered: