Sto usando React con SSR FlowRouter.React SSR - handle window.height/width
A causa di queste righe:
var height = (Meteor.isClient ? window.innerHeight : 0);
<div style={{top: height+'px' }}>
ottengo un avvertimento:
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.
lo so questo è a causa della differenza tra il client e il codice del server (non ho accesso ai finestra sul mio server).
C'è un modo per evitare questo avviso?
Grazie per aver postato, l'hai capito? – Coherent