From d03ae8e5ec1cc46560ac3b1f1bdf40e107e475c5 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 15 May 2024 13:05:55 +0200 Subject: [PATCH] Add missing deps to memo --- src/components/Tooltip/Tooltip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index e0b53517..a92ab3b6 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -175,7 +175,7 @@ function TooltipAnchor({ children }: Readonly): 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");