Commit bd1f91b6 authored by Evan You's avatar Evan You

tweak comments

parent e7014499
......@@ -30,6 +30,7 @@
export default {
name: 'news-item',
props: ['item'],
// https://github.com/vuejs/vue/blob/next/packages/vue-server-renderer/README.md#component-caching
serverCacheKey: props => {
return `${props.item.id}::${props.item.__lastUpdated}`
}
......
......@@ -24,7 +24,7 @@ export default context => {
})).then(() => {
isDev && console.log(`data pre-fetch: ${Date.now() - s}ms`)
// After all preFetch hooks are resolved, our store is now
// filled with the needed state to render the app.
// filled with the state needed to render the app.
// Expose the state on the render context, and let the request handler
// inline the state in the HTML response. This allows the client-side
// store to pick-up the server-side state without having to duplicate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment