You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm doing how it is described in readme. However, it does not work for services which created on application start. Only for scoped services, like controllers, graphql resolvers.
Is it possible to get it worked for singleton services?
The text was updated successfully, but these errors were encountered:
At least the typing needs to be fixed. RequestContext::get() method return type should be T | undefined as the docs says that getStore() can return undefined.
If called outside of an asynchronous context initialized by calling asyncLocalStorage.run() or asyncLocalStorage.enterWith(), it returns undefined.
I'm doing how it is described in readme. However, it does not work for services which created on application start. Only for scoped services, like controllers, graphql resolvers.
Is it possible to get it worked for singleton services?
The text was updated successfully, but these errors were encountered: