Describe the bug
When deleting a new paragraph block, a network request is unexpectedly issued for the /wp/v2/tags endpoint. This request is cancelled immediately if the block is deleted by backspace, but not if by the side menu Trash button.
To my knowledge, I can't think of a reason we would need to request tags at this point.
To Reproduce
Expected behavior
The block is deleted. No need for network request.
Actual behavior
The block is deleted, but a request is issued for the /wp/v2/tags endpoint (made obvious in observing the browser developer tools Network tab).
Desktop (please complete the following information):
Clarification: This only occurs when the "Tags" sidebar is visible and expanded.
This is fun. Software is cool.
Just realized that I created #8024 as a duplicate of this one.
@jorgefilipecosta had some useful (and I believe correct) context there:
If we close and reopen the sidebar or go from the block sidebar to the document sidebar, the taxonomies are requested again.
What happens is that HierarchicalTermSelector and FlatTermSelector request the taxonomies on Mount.
I think what happens here is that when removing a block we go from block sidebar to document sidebar so the taxonomy component are mounted and the request happen.Each time we select and unselect a block the taxonomies are requested again, what's happening here is the wrong behavior of requesting taxonomies on mount in this cases.
If we merge #5826 and expend the usage of our data module to all taxonomies this problem is going to get fixed.
Sounds like this could be a matter of changing the term selectors to use the entities selectors, i.e. select( 'core' ).getEntityRecords( 'taxonomy', 'post_tag', { post_per_page: -1 } )
Related #10274
So it looks like this has evolved a bit, possibly due to #10642 and likely other changes as the UI has evolved a bit since then.
It doesn't send any requests when there are no tags assigned. I think this likely covers the majority of situations where this would occur.

It sends 2 identical back-to-back requests if there are any tags assigned:

Sounds like this could be a matter of changing the term selectors to use the entities selectors, i.e.
select( 'core' ).getEntityRecords( 'taxonomy', 'post_tag', { post_per_page: -1 } )
This approach is blocked by #11643. Moving to Future: 5.1
Sounds like this could be a matter of changing the term selectors to use the entities selectors, i.e.
select( 'core' ).getEntityRecords( 'taxonomy', 'post_tag', { post_per_page: -1 } )This approach is blocked by #11643. Moving to
Future: 5.1
Related: #13849
Looks like I can't reproduce this anymore.
Most helpful comment
This is fun. Software is cool.