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
If I have a model with 5 possible states, without transition restrictions (see #153), but I want to use a custom transition that is identical between all of them, I have to create a custom transition class for every possible transition.
It should be possible, in the base State to be able to specify a default transition class (would fallback to the current implementation if none where specified). I would suggest something like this in the base State class:
This discussion was converted from issue #154 on February 15, 2021 08:15.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Rationale:
If I have a model with 5 possible states, without transition restrictions (see #153), but I want to use a custom transition that is identical between all of them, I have to create a custom transition class for every possible transition.
It should be possible, in the base
State
to be able to specify a default transition class (would fallback to the current implementation if none where specified). I would suggest something like this in the baseState
class:This way each (base) state could provide it's own default transition class.
Beta Was this translation helpful? Give feedback.
All reactions