c-schwan
c-schwan
Use Server middleware to inject the client to the event.context
@pi0 great idea. but as I saw asyncData key are not allowed jet. Let’s say I have a compostable called „useCart“ with multiple functions „load“, „addItem“, „removeItem“ each of those...
@pi0 thx, but if i use the combination of useState and $fetch then i lose the useAsyncData functionality like { server: true | false}, lazy:true. So i have to duplicate...
@fabon-f [#21784 comment](https://github.com/nuxt/nuxt/issues/21784#issuecomment-1607199537)
useAsyncData in middleware gives warning to use $fetch when changing route to the same pageComponent
Just use findOne without useAsyncData in the middleware
Issue is resolved in 3.4.11