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?
@ThisDotMedia Жыл бұрын
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.
@26Anshu Жыл бұрын
@@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?
@ThisDotMedia Жыл бұрын
@@26Anshu That's correct- you'll have to pass it.
@josht130 Жыл бұрын
Experiencing the same issue, frustrating that we need to propagate the store everywhere