Get terms of a taxonomy using useSelect
If you use the _fields argument, then it needs to include id. Otherwise, getEntityRecords() will always return a null, even if the REST API request succeeded. So to fix the issue in question, you just need to add id to your args, i.e. _fields: ‘id,name,slug’. You should also know that per_page is limited to 100, … Read more