Closed academici closed 4 years ago
Can you provide a repo for this ? I'm unable to reproduce it
repo When you first visit the page APOLLO_STATE contain server data After pefresh page APOLLO_STATE is empty.
Without your graphql server I can't test it
Hi @academici,
I've run some tests on others SSR solutions for Vue: I am able to reproduce this issue with Nuxt and Akryum plugin.
Indeed, this is not a bug but a normal behavior, here is the flow:
serverCachekey
function defined, the Vue renderer cache the final HTMLserverPrefetch
hook)So, in this case, apollo plugin is not called during the component rendering, and then apollo state is empty!
Describe the bug If using serverCacheKey parameter in component, __APOLLO_STATE__ does not contain query data.
To Reproduce Create any component with apollo query and serverCacheKey parameter.
Please indicate versions of: