Closed chip4 closed 2 years ago
it looks like I've created a regression there, but at least now I have a test-case to cover. Thank you very much, and apologies for the late reply, I had busy days. I'll look into it, and probably I will rollback if I can't find a good solution based on changes landed in 0.11.
@chip4 sorry but I never got a chance to properly investigate the issue, but I could reproduce it was broken, so I've reverted the latest change, and published it again. I hope that's fine.
Reverting the commit works just fine for me. Thanks for taking the time to address the issue even if you couldn't dig in and figure out exactly what the problem was in that commit. Much appreciated.
This is a bug for the issue discussed here: https://github.com/WebReflection/discussions/discussions/50
In summary the issue is that nested components wrapped with
Component()
sometimes don't display when they should.Here's some html showing the issue:
There should be 4
InnerSection
s in total on the page, but only the 2 under the 2ndSection
show.A workaround was provided in the linked discussion to use
html.for(document.body, title)
on thechildren
field when callingSection
.I did a
git bisect
(testing against./esm/index.js
) and 93793bef87e5be89603498b511965db00fc17b81 came up as the commit that introduced this.Also if I changed https://github.com/WebReflection/uland/blob/master/esm/index.js#L18:
to
to bypass the cache the issue went away, but that's more of a clue than a fix.