Closed ghost closed 5 months ago
this is needed for cases where initial images passed to <Gallery /> is being updated (for example, adding new items to it).
images
<Gallery />
without the memoized version, browser re renders already existing images, therefore getting a "flickering" effect in each state update.
Thanks @evgeni-dagshub. Code looks good. Nice addition.
Merged #358
Reports that image selection not working properly so rolling back until I can look into it
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.