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
Parameter | Type |
---|---|
TSource | Name |
Parameters
Parameter | Type |
---|---|
source | Url | TSource |
options | RouterPushOptions | undefined |
RouterPushOptions
ts
{
query?: Record<string, string>,
replace?: boolean,
hash?: string,
}
Returns
Promise<void>