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

export memoized version of Image #358

Merged
merged 2 commits into from May 7, 2024
Merged

export memoized version of Image #358

merged 2 commits into from May 7, 2024

Conversation

ghost
Copy link

@ghost ghost commented May 7, 2024

this is needed for cases where initial images passed to <Gallery /> is being updated (for example, adding new items to it).

without the memoized version, browser re renders already existing images, therefore getting a "flickering" effect in each state update.

@benhowell
Copy link
Owner

Thanks @evgeni-dagshub. Code looks good. Nice addition.

@benhowell benhowell merged commit 4797e19 into benhowell:master May 7, 2024
1 check passed
@benhowell
Copy link
Owner

Merged #358

@benhowell
Copy link
Owner

Reports that image selection not working properly so rolling back until I can look into 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

Successfully merging this pull request may close these issues.

2 participants