Skip to content

Commit

Permalink
Merge pull request #171 from element-hq/florianduros/missing-deps-too…
Browse files Browse the repository at this point in the history
…ltip

Add missing deps to memo
  • Loading branch information
florianduros authored May 15, 2024
2 parents 14f035f + d03ae8e commit 79d1434
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 79d1434

Please sign in to comment.