Skip to content

Commit

Permalink
Sidebar.js
Browse files Browse the repository at this point in the history
Added Memoized support for Sidebar
  • Loading branch information
officiallygod committed Feb 2, 2023
1 parent 2c081c9 commit 14b7615
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -57,4 +57,4 @@ const LearnMoreSidebar = () => {
);
};

export default LearnMoreSidebar;
export default memo(LearnMoreSidebar);

0 comments on commit 14b7615

Please sign in to comment.