Having an idle state vs lazily starting the machine #5007
Unanswered
xxRockOnxx
asked this question in
Q&A
Replies: 1 comment
-
|
It depends on what you want to do, but "waiting for a value" is still a state IMO. Having an idle/pending state makes sense to me. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
The simplest example but not limited to that I could probably think of is a plain fetch that needs a certain variable.
Say the use case we want is for an actor that fetches a specific resource.
Would you have an idle state that listens for a "GET_BY_ID" kind of event?
Or would just lazily create the machine and passing "input"?
Beta Was this translation helpful? Give feedback.
All reactions