react-tooltip
react-tooltip copied to clipboard
BUG: Tooltip is not updating when useState prop updates
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.