Skip to content

Incorrect "unable to reuse markup" warning message #3399

@th0r

Description

@th0r

React 0.13 improved warning message when it fails to reuse server rendered markup and now shows the exact incorrect part.
But it shows wrong part if there are text nodes containing some html-escaped chars (single quotes, double quotes etc.) somewhere before this incorrect part.
For example, React shows this message...

(client) sxg4h94hs.2.1.0.1">{"Hi!"
(server) sxg4h94hs.2.1.0.1">"Hi!"

...but this part is ok. The problematic markup (which actually renders differently on client and server) is located after this place in DOM.
If i remove "Hi!" text from the rendered markup, React shows correct warning message and points to the real problematic place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions