Skip to content

Commit

Permalink
Make sure deferred rendering is active for grid layout
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 25, 2024
1 parent 6709c96 commit fc0f513
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ export default function PageTemplatesTemplateParts( { postType } ) {
view={ view }
onChangeView={ onChangeView }
onSelectionChange={ onSelectionChange }
deferredRendering={ ! view.hiddenFields?.includes( 'preview' ) }
deferredRendering={
view.type === LAYOUT_GRID ||
! view.hiddenFields?.includes( 'preview' )
}
/>
</Page>
);
Expand Down

0 comments on commit fc0f513

Please sign in to comment.