In Gutenberg there’s the
getEntityRecord selector that allows you to get the data of a post of a specific post type:
// get the post object of a page with post id = 42 const post = useSelect( ( select ) => select('core').getEntityRecord( 'postType', 'page', 42 ) );
My question is, is there a similar selector for when you don’t know the post type of a post beforehand? I have a meta field that stores an array of post ids of different post types and right now I’m unable to get the full post objects.