Functions to enable the router in an Elmish program.
Function or value | Description |
|
|
Full Usage:
withRouterInfer makeMessage getEndPoint program
Parameters:
'ep -> 'msg
-
Function that creates a message from an endpoint value.
getEndPoint : 'model -> 'ep
-
Function that extracts the current endpoint from the model.
program : Program<'model, 'msg>
-
The Elmish program.
Returns: Program<'a, 'model, 'msg, Node>
The Elmish program configured with routing.
|
Attach a router inferred from `makeMessage` and `getEndPoint` to `program` when it is run as the `Program` of a `ProgramComponent`.
|