RouterReplace 
Replace has the same effect as RouterPush but without pushing an entry to the browser's history.
Type parameters 
| Parameter | Type | 
|---|---|
TSource | Key | 
Parameters 
| Parameter | Type | 
|---|---|
source | Url | TSource | 
options | RouterReplaceOptions | undefined | 
RouterReplaceOptions 
ts
{
  query?: Record<string, string>,
}Returns 
Promise<void>