nuxt3-apollo-module
nuxt3-apollo-module copied to clipboard
Doesnt properly work with ssr: false; nuxt3
Disabling ssr ( ssr: false) produces this error
Unexpected token u in JSON at position 0
commenting out this line works
cache.restore(JSON.parse(JSON.stringify(nuxt.payload.data["apollo-" + clientId])));

Not sure why this happened
Forking and adding replacing this line temporarily fixed my problem
const cacheData = JSON.stringify(nuxt.payload.data["apollo-" + clientId] ?? {})
cache.restore(JSON.parse(cacheData));
Forking and adding replacing this line temporarily fixed my problem
const cacheData = JSON.stringify(nuxt.payload.data["apollo-" + clientId] ?? {}) cache.restore(JSON.parse(cacheData));
Could you send PR?