-
Notifications
You must be signed in to change notification settings - Fork 919
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
Image component doesn't rerender #77
Comments
Update image props on re-render. Flipboard#77
I have a similar problem and I'm wondering if I'm missing something. When I change the src on an image component via a state change, it doesn't rerender on the canvas. Isn't this the expected behavior or no? |
@benjamingeorge Yes, if you change the state, all components should update. That's the common behavior of React components. You can try to use my fix but I just noticed that it's not working perfectly if the image is not loaded already. |
Yes your fix works for me but only if the images are preloaded by placing them in the DOM in img tags. |
Is it possible to fix this bug somehow? Such a showstopper for me. |
+1, you can workaround by using src (or a hash of src) as key |
<Image src={src} />
If I change the variable
src
the image doesn't update. Is this a bug?The text was updated successfully, but these errors were encountered: