(path: string)
| 80 | |
| 81 | // push the url with current history |
| 82 | public async push(path: string) { |
| 83 | await this._barrier.wait(); |
| 84 | const emptyState = { pathname: '', search: '', hash: '' }; |
| 85 | return this._history!.push({ ...emptyState, ...parsePath(encodeURI(path)) }); |
| 86 | } |
| 87 | |
| 88 | // replace the url with current history |
| 89 | public async replace(path: string) { |