Skip to content

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 ​

PropertyTypeDefault valueDescriptionDefined in
clearOnDefault?booleantrueRemoves 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

Released under the MIT License.