Replies: 1 comment 1 reply
-
Hello @snowystinger Would you mind taking a look to this and share your thoughts or an advice? Thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I'm trying to create a ContextualHelp component that opens when pressing it but also when the user hovers ir. I'm using the RAC Button as the trigger and the Popover component. The problem is that when I set a state inside the
onHoverStart
prop, theonHoverEnd
is also called immediately (I think because of the re-render), so the component enters in a re-render loop and something curious is that if I move the cursor only one pixel, the handlers are called again.I think it's related with the Popover, because if I use the state variable to render a simple element it works great. Any idea if it's even possible to fix this?
You can play with it here https://codesandbox.io/p/devbox/kttytn
NOTE: my implementation is based on this #4705 and this #7192
Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions