Router region replacement funky with Query-No-Results block after Post-Template block #60313
poof86
started this conversation in
Interactivity API
Replies: 2 comments 2 replies
-
Sidenote: I think attributes without a "=" also aren't loaded in correctly. for instance the attribute 'disabled' on it self is ignored during region replacement? This is without any wp-bind directive |
Beta Was this translation helpful? Give feedback.
0 replies
-
How do you navigate to a Query with no results if it doesn't have pages, and therefore no navigation links? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems that the Query region isn't properly replacing all elements when a Query-No-Results block in present in the query region.
For example, I have a spacer block after the Post-Template block that is not included in the region update. While the following blocks after this spacer are included. I've checked the html that the browsers receives in the Dev Console (under Network) and the spacer block is there in the html.
When I place the core Query-No-Results block near the Post-Template block, I notice that the Post Template block doesn't get emptied/removed all the way when navigating to a query with zero results.
The Query-No-Results block will be added above the Post-Template block which only holds one post at this point. The mess keeps growing when you navigate to a query with results and the previous Post-Template block isn't replaced. Navigating to empty results again, another Query-No-Results is added beneath the already rendered Query-No-Results block etc.
So it's version 1 where something extra is removed, or version 2 where blocks aren't properly removed.
I wasn't sure if I should make an issue for this, or to share it here in the discussion.
Beta Was this translation helpful? Give feedback.
All reactions