From adab9db044781acd6b6405da721d2cd8c59b5a0f Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Wed, 21 Apr 2021 20:06:15 +0200 Subject: [PATCH] chore: remove unnecessary useMemo --- .../bottomSheetHandleContainer/BottomSheetHandleContainer.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx b/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx index 3aa46e84d..d8d2994c1 100644 --- a/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx +++ b/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx @@ -17,9 +17,7 @@ const BottomSheetHandleContainerComponent = ({ onMeasureHeight, }: BottomSheetHandleContainerProps) => { //#region variables - const shouldRenderHandle = useMemo(() => _providedHandleComponent !== null, [ - _providedHandleComponent, - ]); + const shouldRenderHandle = _providedHandleComponent !== null; //#endregion //#region callbacks