Skip to content

在v-for里面使用$attrs会引发不必要的渲染 #11592

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

Closed
gongtiexin opened this issue Aug 13, 2020 · 1 comment
Closed

在v-for里面使用$attrs会引发不必要的渲染 #11592

gongtiexin opened this issue Aug 13, 2020 · 1 comment

Comments

@gongtiexin
Copy link

Version

2.6.11

Reproduction link

https://codesandbox.io/s/kind-water-hqs5f?file=/src/App.vue

Steps to reproduce

在任意输入框输入任意内容

What is expected?

输入流畅

What is actually happening?

输入卡顿


在v-for里面,绑定了$attrs的都会触发更新,引起不必要的渲染

@posva
Copy link
Member

posva commented Aug 13, 2020

Duplicate of #10115

@posva posva marked this as a duplicate of #10115 Aug 13, 2020
@posva posva closed this as completed Aug 13, 2020
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

No branches or pull requests

2 participants