Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: problem with search results not displaying #83

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

gaishimo
Copy link
Contributor

@gaishimo gaishimo commented Sep 4, 2022

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.

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.

Before After

@oferRounds
Copy link

Seeing this bug also

Copy link
Member

@jakex7 jakex7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching this! Your fix seems to be the best solution for now, so it will show up in the next release 🚀
Thanks @gaishimo

@jakex7 jakex7 merged commit bd214e4 into TheWidlarzGroup:master Sep 27, 2022
@gaishimo gaishimo deleted the fix-search branch September 27, 2022 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants