apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Nuxt option "globalName" breaks ssr prefetch

Open wszerad opened this issue 4 years ago • 0 comments

Version

v4.0.1-rc.1

Reproduction link

https://github.com/wszerad/nuxt-apollo-issue

Steps to reproduce

  1. Run "dev" script
  2. Load page (ssr results are ignored and database is called twice)

Removing "globalName" from nuxt.config will fix issue

Tested with "4.0.1-rc.5"

What is expected ?

Page will load without additional call to database

What is actually happening?

Database is called twice, prefetched data from ssr are ignored

This bug report is available on Nuxt community (#c380)

wszerad avatar Apr 26 '21 09:04 wszerad