|
Let say I have hierarchical SM and some data is passed to some inner state. I would like this data propagated to initial state on such inner state. |
Answered by
nsk90
Jan 13, 2023
Replies: 2 comments 1 reply
|
Hello, there is not such functionality like Data propagation, sorry. DataState/DataEvent are designed to be type safe API for passing data from event to its target state. Such propagation is out of their scope. I suggest simply access If you need more control on how this data should be stored, you should subclass |
1 reply
Answer selected by
oyanyev
|
Sorry, I see that, in spite state is finished, transitions are triggered from within. Checked that with a test. Let's how it works in a code |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, there is not such functionality like Data propagation, sorry. DataState/DataEvent are designed to be type safe API for passing data from event to its target state. Such propagation is out of their scope.
I suggest simply access
innerInitialparent's data via direct reference toinnerorparentproperty.