-
Notifications
You must be signed in to change notification settings - Fork 138
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
re-rendering and tooltip bug? #11
Comments
Hi @zerobell-lee, thanks for testing it out. Do you mind reproducing the bug in a codesandbox? You can install npm modules with https://codesandbox.io and set it up. Thanks! |
Without too much context, I'm guessing the re-rendering maybe due to the fact that |
https://codesandbox.io/s/315507jno6?fontsize=14 I made an example code. Tooltip doesn't change. I can also see long words pop out of the canvas. Thank you! |
Ah that seems like a bug, let me dig into it next week or if you are able to find the fix, a PR would be helpful :) |
I'd really like to do PR but I haven't learned ts and react hooks. Sorry for making you busy :( At the moment, I'm using key props to force resetting wordcloud. I heard it's a temporary solution but I don't care since it works. |
Hi @zerobell-lee, 1.0.3 solves the tooltip bug (you can reinstall the dependency in your codesandbox.io). I finally understood why some words occasionally fly out. This is an issue related to A couple of solutions that people have explored and I've tested them:
I'll try to give the problem another day or two to brainstorm on a good general solution. The current solutions that I've tried don't seem to pinpoint the exact problem and how to solve it. In the meantime, you should increase the width/height of your parent container or set it explicitly using the |
Hey @zerobell-lee, your specific example is fixed with I spent the past 2 days digging into the issue. It's not easy to come up with a complete solution but I was able to have I added a FAQ page that explains some of the common problems and resolutions, so feel free to check it out: https://react-wordcloud.netlify.com/#/faq Closing the issue since there is no complete fix for now :) |
Thank you for your supporting, I updated wordcloud to the latest version :) It works good. |
I'm using react-wordcloud with select tag. When I choose an item from dropdown menu, the page shows a wordcloud that matched with that item. In this case, words get re-rendered but tooltips doesn't. Tooltips remain as of the first item.
When I change window size, so resizing occurs, tooltips get re-rendered also. Only when I replace wordcloud, this bug occurs.
Thank you for your great job, I'm very satisfied with v 1.0.2! I appreciate your effort.
The text was updated successfully, but these errors were encountered: