Combine multiple getEntityRecords calls
Can the multiple calls be combined inside just one useSelect selector? Yes, and here’s an example where my useSelect() returns an object that I unpack using the destructuring assignment (e.g. const { a, b } = myFunc() where myFunc() returns { a: ‘foo’, b: 123 }): const { groups, selectedGroup, faqs } = useSelect( ( … Read more