You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The types are indeed not compatible: null can exist as a value of Route but when providing a Location with methods like push and replace, null is not valid name. FYI, there are a few other things that cannot be passed like fullPath. In general, spreading $route to a push/replace is a bad idea because it's a normalised location and it contains more information than a Location
Uh oh!
There was an error while loading. Please reload this page.
Version
3.1.6
Reproduction link
http://shorturl.at/ixJQ5
Steps to reproduce
With typescript, it breaks.
What is expected?
Route and Location types are compatible.
What is actually happening?
As Route now have the name parameter with
string | null | undefined
it breaks the navigation, asLocation
will only acceptstring | undefined
as name.Commit causing the issue:
8f831f2
The text was updated successfully, but these errors were encountered: