I'm not sure I entirely understand how the capture is supposed to work in this case so I don't know where to start looking. Basically I'm wrapping this behaviour:
<%= c "foo" do %>
<%= c "bar" do %>
Hello
<% end %>
<% end %>
I think this issue is similar to #83, that has been handled with a workaround.
Since it's the second time this issue is raised, I think we should investigate further.
I'm trying to write a Komponent with a method that renders another Komponent but something seems to be up with how the blocks are passed around.
I have built a repro case at https://github.com/aldhsu/komponent-nested-yields.
Expected
Expect this:
To output:
Actual
I'm not sure I entirely understand how the
capture
is supposed to work in this case so I don't know where to start looking. Basically I'm wrapping this behaviour: