benhowell / react-grid-gallery

Justified image gallery component for React
https://benhowell.github.io/react-grid-gallery/
MIT License
1.01k stars 209 forks source link

fix: memo image #359

Closed codezzzc closed 6 months ago

codezzzc commented 6 months ago

After pulling the latest code today, I found that the image selection not work, and there was no selection effect after clicking the icon. The problem is that after adding the memo of the component, the judgment of prevItem.isSeleted is ignored. We can directly add an isSeleted judgment, but I think it might be simpler to use lodash.