Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

SSR: Don't process directives in inner blocks#227

Closed
ockham wants to merge 1 commit intomain-wp-directives-pluginfrom
fix/repeated-processing-of-directives-in-nested-blocks
Closed

SSR: Don't process directives in inner blocks#227
ockham wants to merge 1 commit intomain-wp-directives-pluginfrom
fix/repeated-processing-of-directives-in-nested-blocks

Conversation

@ockham
Copy link
Copy Markdown
Collaborator

@ockham ockham commented Apr 24, 2023

Extracted from #215. See #215 (comment) for the rationale.

Since we are hooking wp_process_directives into render_block, it gets run repeatedly on markup inside nested inner blocks (once for each level of block nesting around a given piece of markup).

@ockham ockham self-assigned this Apr 24, 2023
@ockham
Copy link
Copy Markdown
Collaborator Author

ockham commented Apr 25, 2023

On second glance, I've noticed that with this patch applied on top of #141 and tested with the Movies Demo, we're actually missing one <template> wrapper that the wp-show directive processor is supposed to wrap around the <div> with data-wp-show="selectors.wpmovies.isVideosTab" 🤦‍♂️

Closing.

@ockham ockham closed this Apr 25, 2023
@ockham ockham deleted the fix/repeated-processing-of-directives-in-nested-blocks branch April 25, 2023 14:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant