Skip to content

Commit 29370d4

Browse files
docs: section on ReactTooltip.rebuild()
1 parent e4fd36e commit 29370d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/docs/upgrade-guide/changelog-v4-v5.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ This resulted in a great improvement in performance, and made it easier for the
3232
- `getContent` prop was removed. Instead, you can directly pass dynamic content to the `content` tooltip prop, or to `data-tooltip-content` in the anchor element
3333
- Default behavior of tooltip now is equivalent to V4's `solid` effect, instead of `float`. The new `float` prop can be set to achieve V4's `effect="float"`. See [Options](../options.mdx) for more details
3434

35+
## What about `ReactTooltip.rebuild()`?
36+
37+
A common question V4 users have when upgrading to V5 is about `ReactTooltip.rebuild()`.
38+
Rebuilding the tooltip was a required step when using V4 with dynamic content. It isn't necessary when using V5.
39+
40+
The tooltip component now automatically watches for any changes made to the DOM and updates accordingly, without any extra steps needed.
41+
42+
If you run into any problems with the tooltip not updating after changes are made in other components, please open a [GitHub issue](https://github.com/ReactTooltip/react-tooltip/issues/new/choose) reporting what you find, ideally with a sample [CodeSandbox](https://codesandbox.io/) (or something similar) to help us pinpoint the problem.
43+
3544
## New Props
3645

3746
- [x] `classNameArrow`

0 commit comments

Comments
 (0)