Skip to content

feat!: use native vue-router composables#533

Merged
danielroe merged 2 commits intomainfrom
feat/vue-router-composables
Sep 14, 2022
Merged

feat!: use native vue-router composables#533
danielroe merged 2 commits intomainfrom
feat/vue-router-composables

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

With the release of the latest vue-router, we now have access to vue-router composables for:

  • useRoute
  • onBeforeRouteLeave
  • onBeforeRouteUpdate
  • useLink
  • useRouter

This PR implements them as auto-imports and removes our own custom implementation of useRoute and useRouter

👉 Migration

If you were importing useRoute and useRouter from #app you should update to import them from #imports instead.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added the enhancement New feature or request label Sep 13, 2022
@danielroe danielroe self-assigned this Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant