-
Notifications
You must be signed in to change notification settings - Fork 870
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
img tag in lazy-compoent will not update when data change #412
Comments
I have the same issue. Did you find a resolution? |
@peng Hi, I updated this code example, you can take a look: https://codesandbox.io/s/practical-banach-fgzgh The point is that you need to use the // can't update
<div v-for="(item,index) in list" :key="index" >
<lazy-component>
<img :src="item.src" :key="item.src" >
</lazy-component>
</div> // working fine now
<div v-for="(item,index) in list" :key="index" >
<lazy-component :key="item.src" >
<img :src="item.src" :key="item.src" >
</lazy-component>
</div> |
@hilongjw Oh it works. Good ! Thanks ! |
peng
added a commit
to peng/vue-lazyload
that referenced
this issue
Dec 31, 2019
hilongjw
added a commit
that referenced
this issue
Jan 2, 2020
docs: Add lazy-component docs for #412
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://codesandbox.io/embed/loving-star-7knj0?fontsize=14&hidenavigation=1&theme=dark
In this example when change data, first img tag src attributes will not update.
In my project all img tag in lazy-component will not update when data change
The text was updated successfully, but these errors were encountered: