diff --git a/packages/edit-site/src/components/dataviews/view-grid.js b/packages/edit-site/src/components/dataviews/view-grid.js index b9d4bd78d96d6..d97a9db04200d 100644 --- a/packages/edit-site/src/components/dataviews/view-grid.js +++ b/packages/edit-site/src/components/dataviews/view-grid.js @@ -8,6 +8,7 @@ import { FlexBlock, Placeholder, } from '@wordpress/components'; +import { useAsyncList } from '@wordpress/compose'; /** * Internal dependencies @@ -23,9 +24,15 @@ export function ViewGrid( { data, fields, view, actions, getItemId } ) { ! view.hiddenFields.includes( field.id ) && field.id !== view.layout.mediaField ); + const shownData = useAsyncList( data, { step: 3 } ); return ( - - { data.map( ( item, index ) => { + + { shownData.map( ( item, index ) => { return (
@@ -50,7 +57,7 @@ export function ViewGrid( { data, fields, view, actions, getItemId } ) { ) ) } - +