Skip to content

getInitialState() returning something weird followed by setState() has the world's worst error message #397

@petehunt

Description

@petehunt

See http://jsfiddle.net/nbJVN/

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. 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions