The NavigateOptions type is used to describe the options that can be used when describing a navigation action in TanStack Router.
type NavigateOptions = ToOptions & {
replace?: boolean
resetScroll?: boolean
hashScrollIntoView?: boolean | ScrollIntoViewOptions
ignoreBlocker?: boolean
reloadDocument?: boolean
href?: string
}
type NavigateOptions = ToOptions & {
replace?: boolean
resetScroll?: boolean
hashScrollIntoView?: boolean | ScrollIntoViewOptions
ignoreBlocker?: boolean
reloadDocument?: boolean
href?: string
}
The NavigateOptions object accepts the following properties:
Type: string
Optional
This can be used instead of to to navigate to a fully built href, e.g. pointing to an external target.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.