Skip to content
master
Go to file
Code
This branch is 411 commits behind vuejs:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
e2e
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

vue-router-next CircleCI

Status: Alpha

The current codebase has most of the existing features on Vue Router v3.x and is usable. It supports all the merged RFCs.

Since the library is still unstable and because we want feedback on bugs and missing features, it will probably go through a few breaking changes.

Known issues

Breaking changes compared to vue-router@3.x

  • mode: 'history' -> history: createWebHistory()
  • Catch all routes (/*) must now be defined using a parameter with a custom regex: /:catchAll(.*)
  • router.match and router.resolve are merged together into router.resolve with a slightly different signature
  • router.getMatchedComponents is now removed as they can be retrieved from router.currentRoute.value.matched:
    router.currentRoute.value.matched
      .map(record => Object.values(record.components))
      .flat()

Improvements

These are technically breaking changes but they fix an inconsistent behavior.

  • Pushing or resolving a non existent named route throws an error instead of navigating to / and displaying nothing.

Missing features

  • KeepAlive is only partially supported. Namely, the context (this) is not working properly
  • Partial support of per-component navigation guards. beforeRouteEnter doesn't invoke its callback

Contributing

See Contributing Guide.

About

The Vue 3 official router (WIP)

Resources

License

Packages

No packages published
You can’t perform that action at this time.