DEV Community

Discussion on: State machine advent: Reusable conditional logic with custom guards (17/24)

Collapse
 
shoocky profile image
Nemanja Radosavljevic

instead of adding assign action 'assignTemperature' to every transition, can we just add one transition with no target and no guard with just assignTemperature action?

Collapse
 
codingdive profile image
Mikey Stengel

That would also work, sure.