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

inheritAttrs is not working #253

Open
sxzz opened this issue Jun 22, 2024 · 1 comment
Open

inheritAttrs is not working #253

sxzz opened this issue Jun 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sxzz
Copy link
Member

sxzz commented Jun 22, 2024

inheritAttrs may affect performance:

<div :id="expr" :title="expr2" />

  • It has two separate dynamic props. If an expression changes, just update the corresponding prop.
  • By default, inheritAttrs is enabled. Since a prop might be overridden, neither of these can be optimized.
  • Every time either expr, expr2, or $attrs change, the entire props need to be re-patched.
@sxzz sxzz added the bug Something isn't working label Jun 22, 2024
@sxzz sxzz self-assigned this Jun 22, 2024
@LittleSound
Copy link
Member

Certain designs in Vapor that are incompatible with Vue Core might achieve better performance. This also applies to situations like implementing built-in directives.

Perhaps when we need to implement Vue4, we can consider such things :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants