mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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
|
// 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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -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'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user