studiopress/atomic-blocks

Post grid block: Unbounded query for pages

mindctrl opened this issue · 0 comments

In #349 we added a page query that pulls in pages with a per_page: -1 argument.

Reference:

const getPages = wp.data.select( 'core' ).getEntityRecords( 'postType', 'page', { per_page: -1 } )

We need to update this to pull in content in batches to avoid query timeouts on very large sites.