Felix
Explore posts from serversHow to keep state in SSR requests?
and filed a bug. we'll see what comes of it.. https://github.com/nuxt/nuxt/issues/27909
44 replies
How to keep state in SSR requests?
created a repro here https://github.com/felixSchl/nuxt-ssr-context-bug/blob/3addb782689582efa3155a0f410a837e108658dd/app.vue#L5-L7
44 replies
How to keep state in SSR requests?
I noticed that when I do a
$fetch
from my middleware/01.auth.global.ts
middleware, the initial event context is retained! That is what I want. But why is this not happening for $fetch
requests issued in page components is what I am trying to figure out. I cloned nuxt and will start digging...44 replies
How to keep state in SSR requests?
Sorry if I come across rude but I don't understand how sth so simple can be made to be so difficult it can't be explained in one sentence . Kind of baffling. I'm surprised I also couldn't find answers on google. I love working with Nuxt overall. This is the first hol'on a minute moment. I'll give the video a watch tonight.
44 replies
How to keep state in SSR requests?
I really don't get it. So request flies in, route is matched, handler runs, some $fetch calls happen and since we are on the server a FN runs instead of a http req. In that FN all the context should be available no?
44 replies