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

Make sure React knows that each image is a unique entity #7

Merged
merged 1 commit into from
Sep 10, 2016
Merged

Make sure React knows that each image is a unique entity #7

merged 1 commit into from
Sep 10, 2016

Conversation

cust0dian-old
Copy link
Contributor

@cust0dian-old cust0dian-old commented Sep 10, 2016

Right now React assumes that images differ only by their index and just switches the src attribuite when images change, leading to weird display bug while new images load:

example of the issue

I think using URLs as keys should be the optimal solution here.

(Code from the PR #6 can be used to test this as well)

@benhowell benhowell merged commit 249f9f3 into benhowell:master Sep 10, 2016
@benhowell
Copy link
Owner

Another nice pickup, cust0dian!
Merged 👍

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

Successfully merging this pull request may close these issues.

3 participants