You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
The on_entry action of a state does not get the parent source state as a parameter. But the parent source state could be handy when you need to access its data members e.g. to start a timeout.
Current Workaround
Instead of storing data in the parent source state you can add additional members to the dependency struct.
Proposed Solution
Provide the parent source state to the on_entry function. The same holds true for the parent target state for the on_exit function.
The text was updated successfully, but these errors were encountered:
Problem
The
on_entry
action of a state does not get the parent source state as a parameter. But the parent source state could be handy when you need to access its data members e.g. to start a timeout.Current Workaround
Instead of storing data in the parent source state you can add additional members to the dependency struct.
Proposed Solution
Provide the parent source state to the
on_entry
function. The same holds true for the parent target state for theon_exit
function.The text was updated successfully, but these errors were encountered: