Skip to content

Improve Phlex compatibility#773

Open
allmarkedup wants to merge 3 commits intomainfrom
phlex-render-compat
Open

Improve Phlex compatibility#773
allmarkedup wants to merge 3 commits intomainfrom
phlex-render-compat

Conversation

@allmarkedup
Copy link
Copy Markdown
Collaborator

@allmarkedup allmarkedup commented Jan 3, 2026

Fixes a number issues with previewing Phlex components, as raised in #759

Nested render calls (i.e. within blocks passed to a component) should now work as expected:

def nested_rendering_example_scenario
  render Components::SimpleButton.new do
    render Components::SimpleIcon.new
  end
end

In addition, calls to Phlex helpers (such as plain) within blocks should also now work as expected:

def helper_example_scenario
  render Components::SimpleButton.new do
    plain "The button text"
  end
end

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 3, 2026

Deploy Preview for lookbook-docs canceled.

Name Link
🔨 Latest commit 16dd95f
🔍 Latest deploy log https://app.netlify.com/projects/lookbook-docs/deploys/695aa2441bdc920009d0ab9f

Signed-off-by: Mark Perkins <mark@allmarkedup.com>
Signed-off-by: Mark Perkins <mark@allmarkedup.com>
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.

1 participant