From 14b7615d172cb62186cb5b07bea13261fdaa53d1 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Thu, 2 Feb 2023 19:09:04 +0530 Subject: [PATCH] Sidebar.js Added Memoized support for Sidebar --- .../components/Sidebar/components/LearnMore/Sidebar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OnboardingSPA/components/Sidebar/components/LearnMore/Sidebar.js b/src/OnboardingSPA/components/Sidebar/components/LearnMore/Sidebar.js index a3ff944a6..5493f4284 100644 --- a/src/OnboardingSPA/components/Sidebar/components/LearnMore/Sidebar.js +++ b/src/OnboardingSPA/components/Sidebar/components/LearnMore/Sidebar.js @@ -1,5 +1,5 @@ import { Fill, PanelBody, PanelHeader, Button } from '@wordpress/components'; -import { Fragment, Suspense } from '@wordpress/element'; +import { Fragment, memo, Suspense } from '@wordpress/element'; import { closeSmall } from '@wordpress/icons'; import { useDispatch, useSelect } from '@wordpress/data'; import { __ } from '@wordpress/i18n'; @@ -57,4 +57,4 @@ const LearnMoreSidebar = () => { ); }; -export default LearnMoreSidebar; +export default memo(LearnMoreSidebar);