Skip to content

Function: runTransition()

runTransition<M>(table, from, to): M

Defined in: modal/mode.ts:86

Fire the exit/enter effects for a mode change and return the new mode. The app owns the mode value; call this exactly once per transition, from the same place the mode-change event is appended to the stream. A self-transition runs nothing.

Type Parameters

M

M extends string

Parameters

table

ModeTable<M>

from

M

to

M

Returns

M