vuejs / router

🚦 The official router for Vue.js
https://router.vuejs.org/
MIT License
3.77k stars 1.16k forks source link

docs: using beforeRouteEnter with defineOptions #2131

Closed skirtles-code closed 5 months ago

skirtles-code commented 5 months ago

This addition to the docs attempts to address two common problems:

  1. beforeRouteEnter doesn't have a Composition API function. This is often perceived as an oversight or mistake, as it isn't immediately obvious that such a function isn't possible.
  2. It seems that many people conclude that they can't use beforeRouteEnter if they're using the Composition API.
netlify[bot] commented 5 months ago

Deploy Preview for vue-router ready!

Name Link
Latest commit 9a190b05597e915d9204f421e183f85dbe1eb3c1
Latest deploy log https://app.netlify.com/sites/vue-router/deploys/65c1d413d999a000084237dc
Deploy Preview https://deploy-preview-2131--vue-router.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.