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(vue3): allow passing components as props without reactivity overhead #366

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

brc-dd
Copy link
Contributor

@brc-dd brc-dd commented Jul 17, 2024

Description

Currently if someone imports and passes an icon component as prop, Vue will track it deeply and will give warnings regarding associated performance overhead. This PR wraps the exported element with markRaw to disable deep tracking.

Linked Issues

Additional context

Copy link

stackblitz bot commented Jul 17, 2024

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

@antfu antfu merged commit 02b805d into unplugin:main Jul 17, 2024
2 checks passed
@brc-dd brc-dd deleted the markraw-components branch July 17, 2024 21:24
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.

2 participants