Thanks to visit codestin.com
Credit goes to github.com

Skip to content

perf(unhead)!: composable resolveTags()#622

Merged
harlan-zw merged 4 commits into
v3from
perf/resolve-tag-composable
Dec 25, 2025
Merged

perf(unhead)!: composable resolveTags()#622
harlan-zw merged 4 commits into
v3from
perf/resolve-tag-composable

Conversation

@harlan-zw

@harlan-zw harlan-zw commented Dec 25, 2025

Copy link
Copy Markdown
Collaborator

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ 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

Moves resolveTags() to be used in a composition API style, this allows improved bundles as we only need this code when we are rendering the tags which can be safely delayed for the client from the main unhead core.

Migration

+import { resolveTags } from 'unhead/utils'

const head = injectHead()
-const tags = head.resolveTags()
+const tags = resolveTags(head)

@harlan-zw harlan-zw mentioned this pull request Dec 25, 2025
@harlan-zw harlan-zw merged commit b6a52e0 into v3 Dec 25, 2025
@harlan-zw harlan-zw mentioned this pull request Jan 4, 2026
6 tasks
@harlan-zw harlan-zw mentioned this pull request Apr 4, 2026
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.

1 participant