tomchentw/react-toastr

Improve Server Side Rendering

Closed this issue · 1 comments

In SSR, the order of the props are different on the client and on the server, leading to:

Warning: 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:
 (client) ta-reactid="3"><div class="toast-top-rig
 (server) ta-reactid="3"><div id="toast-container"

Released v2.9.2