react-pick icon indicating copy to clipboard operation
react-pick copied to clipboard

Add test cases and an example for server rendering (and fix any react-pick issues in the process)

Open rendykstan opened this issue 9 years ago • 1 comments

I am getting this Error when I refresh the page with the Combobox.

Uncaught Error: Invariant Violation: You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side: (client) ".223nigdvvuo.0.3"><body data-rea (server) ".223nigdvvuo.0.3"><style type="text/css

Is there a pure way around this error?

By the way it is not causing any problems but the error in the console really bugs me.

rendykstan avatar Jun 13 '15 14:06 rendykstan

Thanks for filing this! And apologies for the delay on responding.

Hm, I haven't done a lot of work on server-rendering with this component yet. A GitHub issue from another project you might find helpful is: https://github.com/rackt/react-router/issues/528

In the meantime, I'll morph this into an issue for making an example + test cases for server rendering to work on in the future. :)

hellojwilde avatar Aug 06 '15 22:08 hellojwilde