Replies: 1 comment
-
Yes, that's the point. When you create the invoked callback (with the So, in order for this actor to receive some updated data, it needs to receive that data in an event (via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
First of all I want to say that this is awesome tool! I'm working with it for a few months now and it really helped me solve some issues.
There is one design thing though that I don't really understand and it's making my life harder.
I have service that looks like that:
The issue here is that context is being used in a closure, so it never changes. So even though this line
cb({type: EventId.ASSIGN_CART_ID, payload: {cartId}})
sets the cart id in context, this condition:if (!context.cartId) {
always returns true. Can you tell me why context is not passed toonReceive
function?Beta Was this translation helpful? Give feedback.
All reactions