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

Updating imgix-params does not update the image #547

Open
ookblah opened this issue Feb 4, 2025 · 0 comments
Open

Updating imgix-params does not update the image #547

ookblah opened this issue Feb 4, 2025 · 0 comments

Comments

@ookblah
Copy link

ookblah commented Feb 4, 2025

Using vue3 and @imgix/vue.

After updating from vue2 to vue3 with the new library, I find that when passing dynamic values to the imgix-params (such as a changing height after the initial render) it no longer updates the image. The height stays at the initial value or "0". Wrapping params into a computed property doesn't work either.

I can verify this by hiding the ix-img component with a flag for a split second (setTimeout) or with nextTick and then showing it triggering the refresh. Component key method also works for updating the image (which is what I'm doing now to get around it).

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

1 participant