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