Closed trusktr closed 8 months ago
Let's just use #292 since it suffers from the same cause.
Seems to be a different cause. In this case the output has this:
_$createComponent("this".Foo, {})
but overall maybe a single pass at handling this
would do the trick.
Here's a React example:
https://codesandbox.io/s/wonderful-water-6pj6xx?file=/App.js
In Solid it isn't working:
https://playground.solidjs.com/anonymous/8b30b075-a0b6-4816-b22d-cff8fdecad7e
A workaround is to read the variable off of
this
first:https://playground.solidjs.com/anonymous/0520b3f9-bc27-4d39-b3b0-b3ea55e72b2b