Skip to content

Types: RouterPushOptions<TState> ​

ts
type RouterPushOptions<TState> = object;

Type Parameters ​

Type ParameterDefault type
TStateunknown

Properties ​

PropertyTypeDescription
hash?stringThe hash to append to the url.
navigation?NavigationBehaviorOverrides the route and router navigation behavior.
query?QuerySourceThe query string to add to the url.
replace?booleanWhether to replace the current history entry.
state?Partial<TState>State values to pass to the route.
viewTransition?ViewTransitionConfigAnimates the navigation with the View Transitions API. Overrides route and router level viewTransition.