-
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.
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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
innerInitial
parent's data via direct reference toinner
orparent
property.