-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SSR] Async renderToString to allow data-prefetching #11
Comments
The current |
PR is up: vuejs/vue#9017 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This would allow for automatic data prefetching (for example with apollo) on the server.
Ideas:
waitCounter = 0
renderToString
withthis.waitForPrefetch()
(waitCounter++
)waitCounter
is0
, resolverenderToString
this.prefetchDone()
after fetching datathis.waitForPrefetch()
againwaitCounter--
waitCounter
is0
we resolverenderToString
this.waitForPrefetch()
(maybe make this parametrable, likemaxReRenders
)<NoSSR>
component prevents both server-side render and async prefetchingskipPrefetch () { return this.myProp }
option?The text was updated successfully, but these errors were encountered: