Optional
flushOptional
preventOptional
relativeDefines the relative path behavior for the link. "route" will use the route hierarchy so ".." will remove all URL segments of the current route pattern while "path" will use the URL path so ".." will remove one URL segment.
Optional
replaceReplace the current entry in the history stack instead of pushing a new one
Optional
stateAdds persistent client side routing state to the next location
Optional
viewEnables a View Transition for this navigation by wrapping the final state update in document.startViewTransition()
. If you need to apply specific styles for this view transition, you will also need to leverage the useViewTransitionState() hook.
Wraps the initial state update for this navigation in a ReactDOM.flushSync call instead of the default React.startTransition