Hi, In your example you have set and access the data within same class. What if we set data in one class and want to access it in another class function invoked from this class?
Hi! As James mentions in the video at 14:45, so long as the ID provided by the declaration of new AsyncLocalStorage() can be shared with the functions, it would be possible.
Didn't know about that! Its super duper cool!
Very nicely explained
I finally understood! Thanks
Very well explained
Hi, In your example you have set and access the data within same class. What if we set data in one class and want to access it in another class function invoked from this class?
Hi! As James mentions in the video at 14:45, so long as the ID provided by the declaration of new AsyncLocalStorage() can be shared with the functions, it would be possible.
@@ThisDotMedia So, I need to pass the sessionId while invoking the other class function. There is no way to access the data without passing it?
@@26Anshu That's correct- you'll have to pass it.
Experiencing the same issue, frustrating that we need to propagate the store everywhere