I have a Vue.js App working with Server Side Rendering (SSR) and then client side hydration and it works great. I love building isomorphic javascript and think it is the way of the future.
But there is still one issue i would like to solve. Here is a simple diagram:
First we check if we have the cached HTML response
If we do not have cache then we:
- Do a Server Side Render (SSR) to render the HTML from a vue.js app
- Then we save to cache
- and send response to client
- Where at this point we mount the vue.js app and do client side hydration.
This flow i have down and works great. I would like to figure out is how to do the step in blue.
If we have cache I would like to:
- Load the html and just like client side hydration mount the vue.js app and update the pieces of cached html then is unique to the current user only (i.e. account info, likes, follows, etc.)
- send response to client
- then just like before do client side hydration to make page interactive.
I have done some research and I could not find any information about Server Side Hydration. I even looked into other isopmorphic framworks like react and angular 2 to see if they had a solution and could not find one.
I don't mind building something like this but i need a push in the right direction, so if there is someone out there that is working on this kind of thing or has any suggestions, much appreciated.