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 // Deprecated hooks
this.deprecateHooks({ this.deprecateHooks({
'render:context': 'render:routeContext', 'render:context': 'render:routeContext',
'render:routeContext': 'vue-renderer:afterRender', 'render:routeContext': 'vue-renderer:ssr:context',
showReady: 'webpack:done' // Workaround to deprecate showReady showReady: 'webpack:done' // Workaround to deprecate showReady
}) })

View File

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