Skip to content

Update the note about Vue Router and lazy loading #1896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

skirtles-code
Copy link
Contributor

This is inspired by the change proposed in #1869.

In Vue 2, Vue Router used Async Components for the lazy loading of route components. However, in Vue 3 these are two similar but distinct features. The description in performance.md hasn't taken this separation into account.

The main change is to the paragraph describing the use of lazy loading with Vue Router. This has been updated to reflect the separation between these two features.

I've also tweaked an earlier paragraph to remove the word 'typically'. I think that was a little misleading in a Vue 3 context, as lazy loaded routes are more typical than explicitly using defineAsyncComponent.

@netlify
Copy link

netlify bot commented Aug 8, 2022

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit f7ef9d2
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/62f0e4f6ce9d30000837a3a7
😎 Deploy Preview https://deploy-preview-1896--vuejs.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 settings.

@yyx990803 yyx990803 merged commit 9a6021d into vuejs:main Aug 15, 2022
edimitchel referenced this pull request in vuejs-translations/docs-fr Aug 16, 2022
edimitchel referenced this pull request in vuejs-translations/docs-fr Aug 22, 2022
* Add a note about `flush: 'sync'`, with links from elsewhere (#1895)

* Update the note about Vue Router and lazy loading (#1896)

Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com>
edimitchel referenced this pull request in vuejs-translations/docs-fr Aug 22, 2022
* Add a note about `flush: 'sync'`, with links from elsewhere (#1895)

* Update the note about Vue Router and lazy loading (#1896)

* Fix Testing Library example (#1904)

Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com>
Co-authored-by: Noel De Martin <noel@noeldemartin.com>
edimitchel referenced this pull request in vuejs-translations/docs-fr Aug 22, 2022
* Add a note about `flush: 'sync'`, with links from elsewhere (#1895)

* Update the note about Vue Router and lazy loading (#1896)

* Fix Testing Library example (#1904)

* 📝 Composition api is available in Vue 2.7 (#1909)

Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com>
Co-authored-by: Noel De Martin <noel@noeldemartin.com>
Co-authored-by: Viki Val <viktorko99@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants