Closed gureckis closed 1 month ago
it is a documentation issue
await router.push({ name: view })
works as expected based on the docs.
await router.go(-1)
does not (also generates Typescript warning).
The docs on programmatic navigation and "Waiting for the results of a Navigation" don't really make this difference clear. Is is possible for both to be await-able?
Both router.push() and router.go() would work with await.
Only router.push() can be awaited.
No response
Unfortunately this is a technical limitation of the history api
Reproduction
it is a documentation issue
Steps to reproduce the bug
works as expected based on the docs.
does not (also generates Typescript warning).
The docs on programmatic navigation and "Waiting for the results of a Navigation" don't really make this difference clear. Is is possible for both to be await-able?
Expected behavior
Both router.push() and router.go() would work with await.
Actual behavior
Only router.push() can be awaited.
Additional information
No response