react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

BUG: Tooltip is not updating when useState prop updates

Open MylesWardell opened this issue 2 years ago • 0 comments

Example Code Sandbox:

https://codesandbox.io/s/example-of-background-colour-not-updating-k0mynp

Expected Behaviour:

When a useState prop changes the tooltip rerenders with the new props. In the example above the tooltip should immediately update to green. At minimum the rebuild should update the props.

Hotfix:

I have tried hiding and showing and using refs and this has not fixed the issue. I could not find any temporary solutions.

MylesWardell avatar Sep 21 '22 06:09 MylesWardell