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

fix(nuxt): broken capo.js injectHead usage #22447

Merged
merged 9 commits into from Aug 3, 2023
Merged

Conversation

harlan-zw
Copy link
Contributor

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

The injectHead doesn't work in SSR Nuxt plugins as the Vue scope isn't available. We also enable the experiment in the basic test fixture so we know it's not breaking any internals.

Sorry, seems like I didn't test this as thoroughly as I thought (forgot to build).

This is also something I'll look to fix in Unhead 2.0.0, attaching a custom context instead of relying on just Vue.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@stackblitz
Copy link

stackblitz bot commented Aug 2, 2023

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

@harlan-zw harlan-zw changed the title fix(head): broken capo.js injectHead usage fix(nuxt): broken capo.js injectHead usage Aug 2, 2023
@harlan-zw
Copy link
Contributor Author

Some race condition error πŸ€” ?

@harlan-zw harlan-zw enabled auto-merge (squash) August 2, 2023 22:15
@harlan-zw
Copy link
Contributor Author

anyway to avoid autofix ci resetting approvals πŸ™ƒ

@danielroe danielroe disabled auto-merge August 3, 2023 06:15
@danielroe danielroe enabled auto-merge (squash) August 3, 2023 06:15
@danielroe danielroe merged commit ac93558 into main Aug 3, 2023
29 checks passed
@danielroe danielroe deleted the fix/head-capo-bug branch August 3, 2023 06:15
@github-actions github-actions bot mentioned this pull request Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants