-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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): add $nuxt.refresh() #6194
Conversation
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.
Cool, that helps phasing out nuxt-static-render too :)
@Atinux Could Maybe not merge in |
Codecov Report
@@ Coverage Diff @@
## dev #6194 +/- ##
==========================================
- Coverage 95.78% 95.74% -0.04%
==========================================
Files 80 80
Lines 2655 2655
Branches 683 683
==========================================
- Hits 2543 2542 -1
- Misses 96 97 +1
Partials 16 16
Continue to review full report at Codecov.
|
We could add this functionality later on key @kevinmarrec, at the moment I prefer to keep it simple :) |
@Atinux Yes, surely ! |
* feat(vue-app): add $nuxt.refreshPageData() * hotifx: lint * chore: use getMatchedComponentsInstance util * fix: rename to refreshPage * fix: rename to refresh * feat: add $nuxt.$context and handle error * feat: set $nuxt.context * hotfix: test
This also has been added [here](nuxt/nuxt#6194) $nuxt.context
Types of changes
Description
Allo to refresh the page data (calling matched pages
asyncData
&fetch
).Will be used for the preview mode, as well as closing #3504
It also add
$nuxt.context
as alias (instead of$nuxt.$options.context
)Checklist: