Closed gaishimo closed 1 year ago
I found a bug that search results are not shown.
This is because EmojiCategory is not re-rendered when props are changed due to React.memo. The second argument func of React.memo always return true.
EmojiCategory
React.memo
true
I modified the func to re-render when category is 'search' and the data has changed. If you have a better way to check, please let me know.
Seeing this bug also
I found a bug that search results are not shown.
This is because
EmojiCategory
is not re-rendered when props are changed due toReact.memo
. The second argument func ofReact.memo
always returntrue
.I modified the func to re-render when category is 'search' and the data has changed. If you have a better way to check, please let me know.