Skip to content

Conversation

@23tux
Copy link

@23tux 23tux commented Oct 29, 2025

What are you trying to accomplish?

  • When a component renders a partial, it's block is evaluated in the context of the __vc_original_view_context
  • Because of this, inside of the block you don't have access to the component's instance

What approach did you choose and why?

I used a separate #capture for the partials block, so that it get's appended into a new OutputBuffer. This output is then caputured by the __vc_original_view_context

Anything you want to highlight for special attention from reviewers?

I'm not sure about performance here, as creating a separate OutputBuffer by using #capture is an overhead.

@markokajzer
Copy link

i can confirm this closes #2443 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants