Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

hendrikheil
Copy link
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

Copy link

stackblitz bot commented Jun 4, 2024

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

@danielroe
Copy link
Member

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

@hendrikheil
Copy link
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
@manniL manniL added 3.x and removed 4.x labels Jun 10, 2024
@danielroe danielroe merged commit 1d34863 into nuxt:main Jun 10, 2024
62 checks passed
@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.

None yet

3 participants