isomorphic-webpack icon indicating copy to clipboard operation
isomorphic-webpack copied to clipboard

Add a demo of using HRM client side together with server-side rendering

Open gajus opened this issue 8 years ago • 3 comments

Related:

  • https://github.com/gajus/isomorphic-webpack/issues/7

There appears to be some confusion about the hot-reloading functionality.

I have added an explanation to why hot-reloading "does not work" server-side to the FAQ (https://github.com/gajus/isomorphic-webpack#isomorphic-webpack-faq-how-does-the-hot-reloading-work). However, it might be useful to add an example that demonstrates how to use client-side HMR in combination with server-side rendering.

gajus avatar Jan 10 '17 21:01 gajus

+1 !!

hulkish avatar Feb 02 '17 03:02 hulkish

Your work is great. For a completely server side rendering demo, can you advice how to deal with the preload of data to render the page? E.g for some other boilerplate of ssr, I noticed if we manually handle the route in the server side, we preload the data and when the component has been rendered in the client, the logic of loading data (either in componentWillMount or componentDidMount) will be executed again. one solution could be add timestamp but seems to be tricky. Any suggestions to make loading data universal ?

mengxingshike2012 avatar Feb 07 '17 09:02 mengxingshike2012

For a completely server side rendering demo, can you advice how to deal with the preload of data to render the page? E.g for some other boilerplate of ssr

Please open a separate issue.

gajus avatar Feb 07 '17 09:02 gajus