Open lalayueh opened 8 years ago
+1
+1
Same.
There must be some good reason for this...surely they knew this would ruin SSR?
I was looking into this just to realise that react-dom-stream
relies on a forked version of react which is on react 0.14.2. Between that and react 15.3.0 I am lost as to where to look for solution for the validation warning's.
Just run into a new issue by using ReactDOMStream:
Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types
Looks like the change is not too hard ?
Any updates on this?
If you are using react 16, it seems to me that you should better use the renderToNodeStream method from ReactDOMServer to fix this issue.
Reference: https://reactjs.org/docs/react-dom-server.html#rendertonodestream
After upgrading react to 15.3.0, it shows the following warning message via the server side rendering:
I think it may call PropTypes directly within the call path of renderToStaticMarkup The issue can be reproduced by the following code:
Could you kindly help this issue. Thanks.