benhowell / react-grid-gallery

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

fix: memo image #359

Closed codezzzc closed 5 months ago

codezzzc commented 5 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.