Closed irudoy closed 5 years ago
yeah legit bug and thanks for such a straight forward reproducible case
while this is being fixed, it can be worked around by nesting the returned element in a fragment inside an esx tag literal
console.log(esx.renderToString(esx `<>${getElement('hi')}</>`))
fixed in v2.3.2 - no perf hit, :D
esx.renderToString
throws "%component% not found in registered components" when ESX element that was created in another ESX instance has been passed. I understand that it's kinda unusual case, but as from description of this project:Example
Output
Repository with repro
https://github.com/irudoy/esx-repro