The MatchRouteOptions type is used to describe the options that can be used when matching a route.
interface MatchRouteOptions {
pending?: boolean
caseSensitive?: boolean /* @deprecated */
includeSearch?: boolean
fuzzy?: boolean
}
interface MatchRouteOptions {
pending?: boolean
caseSensitive?: boolean /* @deprecated */
includeSearch?: boolean
fuzzy?: boolean
}
The MatchRouteOptions type has the following properties:
- Type: boolean
- Optional
- If true, will match against pending location instead of the current location
- Type: boolean
- Optional
- If true, will match against the current location with case sensitivity
- Declare case sensitivity in the route definition instead, or globally for all routes using the caseSensitive option on the router
- Type: boolean
- Optional
- If true, will match against the current location's search params using a deep inclusive check. e.g. { a: 1 } will match for a current location of { a: 1, b: 2 }
- Type: boolean
- Optional
- If true, will match against the current location using a fuzzy match. e.g. /posts will match for a current location of /posts/123