Interface: RouteNode
Documentation / @xmachines/play-router / RouteNode
Defined in: types.ts:63
Node in the route tree representing a single route
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
children | RouteNode[] | Child routes | types.ts:80 |
fullPath | string | Full resolved path from root | types.ts:69 |
id | string | Unique identifier (state ID) | types.ts:65 |
metadata | unknown | Original meta.route metadata | types.ts:84 |
parent | RouteNode | null | Parent route (null for root) | types.ts:82 |
path | string | Route path segment (relative or absolute) | types.ts:67 |
pattern? | string | Route pattern with parameters (e.g., /profile/:userId) if path contains params | types.ts:71 |
routable | boolean | Whether this state is routable (has meta.route) States with meta.route can receive play.route events | types.ts:78 |
stateId | string | XState state ID this route maps to | types.ts:73 |