Detect selected block pattern from a specific Pattern category
It is possible to detect when the Inserter panel is opened. It can be done using the following code snippet:
wp.data.select( 'core/edit-post' ).isInserterOpened()
However, I am wondering if there is an event in
wp.data that allows to detect if the user has selected a block pattern (via Patterns tab) from a specific category (for instance, the Query category).