Hi,
I want to be able to put data-tip all over my code, so I've tried having a single <ReactTooltip /> at the top level of my layout. This doesn't work however, since it does dynamically refresh when the page changes.
What should I be doing? Should I have a new data-tip?
ReactTooltip.rebuild() after component freshI know it may sounds inconvenient, so the tooltip may change its implementation in the future https://github.com/wwayne/react-tooltip/issues/137
You put <ReactTooltip /> at the top level of your layout and call ReactTooltip.rebuild() on componentDidUpdate.
Most helpful comment
ReactTooltip.rebuild()after component freshI know it may sounds inconvenient, so the tooltip may change its implementation in the future https://github.com/wwayne/react-tooltip/issues/137