React-custom-scrollbars: [4.0.0-beta.2] autoHeight causes checksum mismatch in SSR

Created on 29 May 2016  路  3Comments  路  Source: malte-wessel/react-custom-scrollbars

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) bottom:0;min-height:15px;max-height:215p
(server) bottom:0;min-height:0;max-height:200px;"

Server:

position: relative;
overflow: hidden;
-webkit-overflow-scrolling: touch;
margin-right: 0;
margin-bottom: 0;
min-height: 0;
max-height: 200px;

Client:

position: relative; 
overflow: scroll; 
margin-right: -15px; 
margin-bottom: -15px; 
min-height: 15px; 
max-height: 215px;

_Reformatted for readability_

bug

All 3 comments

Oh yes, I didn't consider universal rendering, when implementing autoHeight. Should be easy to fix though. I'll put it on the road map

Did you activate universal rendering mode?

<Scrollbars universal/>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

eyal1990 picture eyal1990  路  5Comments

hank7444 picture hank7444  路  5Comments

Amdingo picture Amdingo  路  4Comments

mhemrg picture mhemrg  路  4Comments

limbosounds picture limbosounds  路  4Comments