name || ! isset( $context->post ) ) { return $paths; } // `DataFormPostSummary` requests the post type form config through // `useViewConfig` with `fields: [ 'form' ]`, so the preload path must // match the resulting `_fields=form` REST API request. $paths[] = '/wp/v2/view-config?kind=postType&name=' . $context->post->post_type . '&_fields=form'; return $paths; } add_filter( 'block_editor_rest_api_preload_paths', 'gutenberg_dataform_inspector_preload_paths', 10, 2 );