Replies: 1 comment 5 replies
-
It's clear, thank you for the information. Just like a function doesn't automatically return its arguments along with its return value, you must explicitly include that input somewhere. For example, in const logic = fromPromise(async ({ input }) => {
// ...
return {
result: [/* ... */],
input
}
}); Would that work for your use-case? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to get the event input that was called prior to invoking in a state in an onDone action.
Currently when accessing the onDone it shows:
{ type : "xstate.done.actor.0.output.loading", output: [] }
But there are times when I would like to see the input. Currently that requires that I save it to the context which is cumbersome when I just want to read the value once.
I can set up code if it's not clear what I'm asking.
Beta Was this translation helpful? Give feedback.
All reactions