vue3-lazyload icon indicating copy to clipboard operation
vue3-lazyload copied to clipboard

Loading is not activated when update image source

Open maherma-adg opened this issue 4 years ago • 6 comments

After update source image no loading image set nor loading class activated.

Expected behavior: After update source image loading image and lifecycle attributes settled and lifecycle functions called.

maherma-adg avatar Mar 30 '21 11:03 maherma-adg

It's broken for me as well on initialization. If I'm trying to update the source image again, it is working.

Sadly, not usable because of this bug :/

Alf21 avatar May 15 '21 16:05 Alf21

can you provide bug code

murongg avatar Dec 03 '21 14:12 murongg

Did not work on initialization too. it just shows the images for a sec then goes to the loading state forever. it is not usable

Sovai avatar Jul 06 '22 04:07 Sovai

Did not work on initialization too. it just shows the images for a sec then goes to the loading state forever. it is not usable

Can you provide a minimum repo to help me troubleshoot the problem quickly?

murongg avatar Jul 06 '22 04:07 murongg

Ive tested it in a vue3 project and it works. It denepends on how do you include your images. Using simply src wont work if you change this to v-lazy. You need to use something like:

v-lazy="require('../assets/img/teaser_small/2.webp')"

Code-Case avatar Dec 06 '22 12:12 Code-Case

Ive tested it in a vue3 project and it works. It denepends on how do you include your images. Using simply src wont work if you change this to v-lazy. You need to use something like:

v-lazy="require('../assets/img/teaser_small/2.webp')"

v-lazy need pass of a Reactivity data, otherwise, data updates may not be obtained. And try to use absolute url path load image, because load image with commonjs may be base64 or build after image path by webpack.

murongg avatar Dec 07 '22 00:12 murongg