Interface: WagenRouterOptions
Defined in: wagen.ts:40
The router options of createWagen. Each is the default of every route state that does not set its own.
Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
clearOnDefault? | boolean | true | Removes a param equal to the parser default instead of writing it. | wagen.ts:46 |
history? | HistoryMode | 'replace' | How a write navigates. | wagen.ts:42 |
mode? | StateMode | 'optimistic' | How a state reads right after a write. | wagen.ts:48 |
source? | RouteStateSource | 'query' | Which part of the route a state reads. | wagen.ts:44 |