Skip to content

feat(nuxt): register plugin hooks before executing plugins#27449

Merged
danielroe merged 12 commits intonuxt:mainfrom
hendrikheil:discussion/27438/register-hooks-before-plugin-execution
Jun 10, 2024
Merged

feat(nuxt): register plugin hooks before executing plugins#27449
danielroe merged 12 commits intonuxt:mainfrom
hendrikheil:discussion/27438/register-hooks-before-plugin-execution

Conversation

@hendrikheil
Copy link
Copy Markdown
Contributor

@hendrikheil hendrikheil commented Jun 4, 2024

🔗 Linked issue

implements #27438

📚 Description

This PR implements the changes described in discussion #27438. It serves as a reference implementation for that discussion, mainly to have a concrete example of the proposed changes.

I'll add tests as the discussion matures.

As this is a breaking change, I think it is best to target this change for 4.x
This now targets 3.12.0

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe
Copy link
Copy Markdown
Member

This seems really good to me ... What makes you think it might be a breaking change?

@hendrikheil
Copy link
Copy Markdown
Contributor Author

I might be overly cautious, but theoretically this change might suddenly run hook listeners that didn't run before this change.

Since it isn't really documented behavior, it might be ok to do this change anyway

@hendrikheil hendrikheil marked this pull request as ready for review June 10, 2024 07:47
Comment thread docs/2.guide/2.directory-structure/1.plugins.md Outdated
@TheAlexLichter TheAlexLichter added 3.x and removed 4.x labels Jun 10, 2024
@danielroe danielroe merged commit 1d34594 into nuxt:main Jun 10, 2024
@github-actions github-actions Bot mentioned this pull request Jun 10, 2024
4 tasks
@hendrikheil hendrikheil deleted the discussion/27438/register-hooks-before-plugin-execution branch June 11, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Later

Development

Successfully merging this pull request may close these issues.

3 participants