-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
feat(vue-app): support app/router.scrollBehavior.js
and deprecate scrollBehavior
#6055
Conversation
YES, thank you -- I was getting close to going down the |
I plan to do the same logic to most of the configuration option that have to be serialised (head, transition, etc) 😄 |
Codecov Report
@@ Coverage Diff @@
## dev #6055 +/- ##
==========================================
+ Coverage 95.65% 95.66% +0.01%
==========================================
Files 82 82
Lines 2695 2702 +7
Branches 693 697 +4
==========================================
+ Hits 2578 2585 +7
Misses 99 99
Partials 18 18
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat 👍
app/router.scrollBehavior.js
and deprecate scrollBehavior
I need to add support for watching |
Watching |
We can now overwrites custom templates given in Example of a module adding Nuxt will automatically watch the |
Good catch for typings Kevin, I think it's fine if they have autocomplete and then Nuxt warning 🤔 |
2.9.0 notes updated to mention |
I really like the fact that we avoid serialization with that step, however (as briefly discussed with @atinux), this means we can't provide data from the |
This PR allows to overwrite application and modules templates with the
app/
directory directly.Types of changes
Description
Not really a feature, but a refactor to move the router
scrollBehavior
torouter.scrollBehavior.js
.Why?
In order to stop serializing function and start opening another way of changing the scrollBehavior with a file.
It also avoid restarting the whole Nuxt application since it's actually a config related to the Vue app.
Before:
After:
Checklist: