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?: QuerySource,
  replace?: boolean,
  hash?: string,
}

QuerySource

Returns

Promise<void>