Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nitro): update nitro internal hook name #218

Merged
merged 4 commits into from
Jun 16, 2021
Merged

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Jun 14, 2021

This fixes hook name and adds hook to dev context as well - issues left over from #177.

@danielroe danielroe added bug Something isn't working nitro labels Jun 14, 2021
@danielroe danielroe self-assigned this Jun 14, 2021
@danielroe danielroe changed the title fix(nitro): correct nitro internal hook name [wipfix(nitro): correct nitro internal hook name Jun 14, 2021
@danielroe danielroe changed the title [wipfix(nitro): correct nitro internal hook name [wip] fix(nitro): correct nitro internal hook name Jun 14, 2021
@danielroe danielroe changed the title [wip] fix(nitro): correct nitro internal hook name fix(nitro): correct nitro internal hook name Jun 14, 2021
@danielroe danielroe requested a review from pi0 June 14, 2021 20:19
packages/nitro/src/compat.ts Outdated Show resolved Hide resolved
@danielroe danielroe changed the title fix(nitro): correct nitro internal hook name fix(nitro): update nitro internal hook name Jun 14, 2021
@@ -27,14 +27,14 @@ export default function nuxt2CompatModule () {
// Connect hooks
nuxt.addHooks(nitroContext.nuxtHooks)
nuxt.hook('close', () => nitroContext._internal.hooks.callHook('close'))
nitroContext._internal.hooks.hook('nitro:document', template => nuxt.callHook('nitro:document', template))
Copy link
Member

@pi0 pi0 Jun 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for the future: We need to once fix two way hooks and avoid manually connecting them.

@pi0 pi0 merged commit 77e489a into main Jun 16, 2021
@pi0 pi0 deleted the fix/nitro-template-hook branch June 16, 2021 11:48
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working nitro
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Direct access to HTML template via @nuxt/app hook
3 participants