mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(core): Provide the correct name of routeContext hook (#6959)
This commit is contained in:
parent
bfc91f9682
commit
c325882e1f
@ -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
|
||||
})
|
||||
|
||||
|
@ -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'
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user