Skip to content

Commit

Permalink
Add missing deps to memo
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed May 15, 2024
1 parent 14f035f commit d03ae8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function TooltipAnchor({ children }: Readonly<PropsWithChildren>): JSX.Element {
...childrenProps,
});
return cloneElement(children, props);
}, [ref, children, childrenProps]);
}, [context, ref, children, childrenProps]);

if (!element) {
throw new Error("Tooltip anchor must be a single valid React element");
Expand Down

0 comments on commit d03ae8e

Please sign in to comment.