Skip to content

RouterPush

Push will update the URL for the browser and also add the URL into the history so when a user uses the back button on their browser it will behave as expected.

Type parameters

ParameterType
TSourceName

Parameters

ParameterType
sourceUrl | TSource
optionsRouterPushOptions | undefined

RouterPushOptions

ts
{
  query?: Record<string, string>,
  replace?: boolean,
}

Returns

Promise<void>