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
Return a string from getInitialState() and call setState(). You get this amazing error message:
Uncaught Error: Critical assumptions about the merge functions have been violated. This is the fault of the merge functions themselves, not necessarily the callers.
The text was updated successfully, but these errors were encountered:
This also seems to apply when using an array, not the string only. Which makes it a pretty real-world bug IMHO (compared to the weird string scenario).
Or is there a reason you don't want states to be arrays?
This will happen whenever state is anything but an Object (I think there is a check in there for arrays). Since we use merge it needs to be an object, arrays are no good either.
See http://jsfiddle.net/nbJVN/
Return a string from
getInitialState()
and callsetState()
. You get this amazing error message:The text was updated successfully, but these errors were encountered: