event.context and event.node.req.__unenv__ #3548
Janibek6119
started this conversation in
Help Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Until the #3224 I was happy assuming that
event.context
being shared between the main event and the sub-events per single clientside fetch is a cool feature. My middleware queried the DB for user/auth data only once per each clientside request, such as page navigation requests too, where some of pages bred 4-5 "implicit" requests, viauseAsyncData()
or plugins with $fetch or whatever.Now turns out that it wasn't a feature and it's not even OK to use it?
Anybody knows how to "properly" do it, then? For now I just shamelessly:
Beta Was this translation helpful? Give feedback.
All reactions