Test
diff --git a/packages/components/src/tree-grid/test/__snapshots__/row.js.snap b/packages/components/src/tree-grid/test/__snapshots__/row.js.snap
index f27fe4977c1234..e066ef0330004a 100644
--- a/packages/components/src/tree-grid/test/__snapshots__/row.js.snap
+++ b/packages/components/src/tree-grid/test/__snapshots__/row.js.snap
@@ -8,6 +8,7 @@ exports[`TreeGridRow forwards other props to the rendered tr element 1`] = `
aria-setsize="1"
className="my-row"
role="row"
+ style={Object {}}
>
|
Test
@@ -23,6 +24,7 @@ exports[`TreeGridRow renders a tr with support for level, positionInSet and setS
aria-posinset="1"
aria-setsize="1"
role="row"
+ style={Object {}}
>
|
Test
diff --git a/packages/edit-post/src/components/secondary-sidebar/list-view-sidebar.js b/packages/edit-post/src/components/secondary-sidebar/list-view-sidebar.js
index 617a22f9b76326..da93e77789cc43 100644
--- a/packages/edit-post/src/components/secondary-sidebar/list-view-sidebar.js
+++ b/packages/edit-post/src/components/secondary-sidebar/list-view-sidebar.js
@@ -6,6 +6,7 @@ import {
store as blockEditorStore,
} from '@wordpress/block-editor';
import { Button } from '@wordpress/components';
+import { memo } from '@wordpress/element';
import {
useFocusOnMount,
useFocusReturn,
@@ -22,7 +23,7 @@ import { ESCAPE } from '@wordpress/keycodes';
*/
import { store as editPostStore } from '../../store';
-export default function ListViewSidebar() {
+function ListViewSidebar() {
const { setIsListViewOpened } = useDispatch( editPostStore );
const { clearSelectedBlock, selectBlock } = useDispatch( blockEditorStore );
@@ -71,3 +72,4 @@ export default function ListViewSidebar() {
);
}
+export default memo( ListViewSidebar );
diff --git a/packages/edit-site/src/components/secondary-sidebar/list-view-sidebar.js b/packages/edit-site/src/components/secondary-sidebar/list-view-sidebar.js
index 469dabaff56198..d58100188c2602 100644
--- a/packages/edit-site/src/components/secondary-sidebar/list-view-sidebar.js
+++ b/packages/edit-site/src/components/secondary-sidebar/list-view-sidebar.js
@@ -12,6 +12,7 @@ import {
useInstanceId,
useMergeRefs,
} from '@wordpress/compose';
+import { memo } from '@wordpress/element';
import { useDispatch } from '@wordpress/data';
import { __ } from '@wordpress/i18n';
import { closeSmall } from '@wordpress/icons';
@@ -22,7 +23,7 @@ import { ESCAPE } from '@wordpress/keycodes';
*/
import { store as editSiteStore } from '../../store';
-export default function ListViewSidebar() {
+function ListViewSidebar() {
const { setIsListViewOpened } = useDispatch( editSiteStore );
const { clearSelectedBlock, selectBlock } = useDispatch( blockEditorStore );
@@ -70,3 +71,4 @@ export default function ListViewSidebar() {
);
}
+export default memo( ListViewSidebar );
|