🐛 The bug
Since updating to 0.17.0 an ssrRef defined within onGlobalSetup throws the nuxt error: _Cannot read property 'context' of undefined_
In 0.16.4 it worked fine. It is broken in 0.17.0 and it is still present in 0.20.1.
🛠️ To reproduce
Steps to reproduce the behavior:
🌈 Expected behaviour
ssfRef can be defined within onGlobalSetup.
ℹ️ Additional context
As recommended I added the onGlobalSetup within a plugin
The docs state that using ssrRef within onGlobalSetup should be possible:
https://composition-api.nuxtjs.org/helpers/ssrRef
Hopefully this is now fixed in 0.20.2 - thanks for reporting it ❤️
I seems like still not working in v0.24.4

@daikiojm Could you create an issue with a reproduction?