Wildcard notation

State A
State B
State C
State D

This example demonstrates the wildcard state *.

Wildcards give you a shorthand way to navigate from any other states to a target state:

transitions: [
    "next    : a > b > c > d",
    "back    : a < b < c < d",
    "restart : a < *"
]

Not only that, but wildcards are calculated at runtime, so states added later will be covered by earlier wildcard transitions.

Menu