Skip to content

Interface: RouteHashOptions ​

Defined in: router/use-route-hash.ts:28

The options of useRouteHash, which mean what they mean in RouteStateOptions.

Properties ​

PropertyTypeDefault valueDescriptionDefined in
clearOnDefault?booleantrueRemoves the fragment instead of writing a value equal to the parser default.router/use-route-hash.ts:36
history?HistoryMode'replace'How a write navigates.router/use-route-hash.ts:34
missing?unknownthe missing of the instanceWhat the ref reads without a fragment or a default.router/use-route-hash.ts:32
mode?StateMode'optimistic'How the ref reads right after a write.router/use-route-hash.ts:38
parser?ParserInputparseAsStringTurns the fragment into a value and determines the type of the ref.router/use-route-hash.ts:30

Released under the MIT License.