Philippe Serhal
Hydration and caching issues on universal rendering page
It's pretty well documented here: https://nuxt.com/docs/guide/concepts/nuxt-lifecycle.
AFAIK the
setup
script runs entirely on both (in universal rendering mode). There are specific components/composables/utils that only run on the server (e.g. https://nuxt.com/docs/api/utils/set-response-status) or on the browser (https://nuxt.com/docs/api/components/client-only) and there's the
https://nuxt.com/docs/api/utils/call-once util to wrap an arbitrary piece of code to run on the server only.23 replies
Hydration and caching issues on universal rendering page
I'm not familiar with nuxt rendering internals, but I'm suspicious of this:
Wouldn't this run on the server as well? Maybe nuxt SSR somehow keeps track of background work and this trips it up?
23 replies
cannot deploy on netlify with nuxt v.3.14 (compatibility version 4)
I don't think that syntax is quite right, but in any case you don't need to hack it that way since a patch version of nuxt was released this morning. Just upgrade to the latest nuxt and you should be good!
10 replies
cannot deploy on netlify with nuxt v.3.14 (compatibility version 4)
Update: see https://github.com/nitrojs/nitro/issues/2846. This will be fixed asap in a nuxt patch (maybe even earlier if nitro cuts a patch with https://github.com/nitrojs/nitro/pull/2851 since that also fixes it for some cases).
10 replies