Layout styles are incompatible with Interactivity API client-side navigation #67308
Open
3 of 6 tasks
Labels
[Block] Query Loop
Affects the Query Loop Block
[Feature] Interactivity API
API to add frontend interactivity to blocks.
[Type] Bug
An existing feature does not function as intended
Description
Blocks relying on layout styles, for example Stack, may be corrupted when used with the client-side navigation (in Query Loop).
This happens if for any reason, the number of items displayed initially may grow over time. There are iterative classes applied to the content
generated in here. And only those classes with those IDs that are initially displayed are loaded (for example last page that doesn't display all of the posts). Hence if you change the page to previous one displaying full page of posts, there will be posts with "new" IDs not loaded initially and they will be missing styles.
Step-by-step reproduction instructions
Expected: All the posts have the same layout
Actual: Some posts have broken layout as their styles weren't initially loaded and are not available on the page change
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: