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.
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.