Skip to content

Server-side rendering question. #769

Open
@chemoish

Description

@chemoish

I am trying to understand how, in the demo, modifying containers or components (HMR) after the server-side rendering doesn't fire this error.

React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:

I noticed something is managing the differences between the initial server-side rendering and any hot-updates there after, even after page refresh.

screen shot 2016-01-04 at 8 17 29 pm

screen shot 2016-01-04 at 8 17 09 pm

Any insight or direction would be much appreciated.

(Not sure if it has anything to do with Babel version, I am trying to piece together version 6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions