Open talaxasy opened 5 months ago
I looked into the source code and I think this is not implemented at the moment.
You can probably use :key="currentImageUrl"
to force a re-render of the whole component and its lazy loading functionality when the value changes.
Great catch! Yeah, the reactiveness is missing at the moment… PR welcome!
Yes, I already use :key
for rerendering, can we consider the issue closed?
Please leave it open. Technically speaking, it's a bug and everyone rightfully can expect props to be reactive. 😌
Reproduction
Reproduction link: link
Insert any image from the ones provided, for example Ivan Grozny, and click on the "Update Image" button. The image is expected to change. In fact, what happens is that the image remains the same
Describe the bug
After reactively changing the image URL, the UnLazyImage component does not render the new value inside the src prop.
Additional context
Logs
No response