fix(core): Provide the correct name of routeContext hook (#6959)

This commit is contained in:
HG 2020-02-18 17:04:02 +00:00 committed by GitHub
parent bfc91f9682
commit c325882e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export default class Nuxt extends Hookable {
// Deprecated hooks
this.deprecateHooks({
'render:context': 'render:routeContext',
'render:routeContext': 'vue-renderer:afterRender',
'render:routeContext': 'vue-renderer:ssr:context',
showReady: 'webpack:done' // Workaround to deprecate showReady
})

View File

@ -38,7 +38,7 @@ describe('core: nuxt', () => {
expect(nuxt._deprecatedHooks).toEqual({
'render:context': 'render:routeContext',
'render:routeContext': 'vue-renderer:afterRender',
'render:routeContext': 'vue-renderer:ssr:context',
showReady: 'webpack:done'
})