Is it possible to get all product categories using Gutenberg getEntityRecords()
?
I have found a code for getting post category as follows
var query = {per_page: 100}
categoriesList = getEntityRecords( 'taxonomy', 'category', query );
Can I alter the above code to get all woocommerce products category?
componentDidMount
lifecycle to get the data via fetch request? You can also look into the WooCommerce default blocks to get the idea how those blocks are requesting the data. – Mehmood Ahmad