Issue with island and props.children.find
#2178
-
|
I am working on https://github.com/adamzerner/rfui. Check out https://rfui.deno.dev/molecules/alert. None of the text shows up for all but the first example. This is weird. The text shows up when I run Inspecting the HTML, I see that for the "AlertHeader and AlertBody" example, generates the following HTML locally: However, in production, I see that it generates this instead: So the issue is: vs Where this and this is the relevant code in I can't figure out what the issue is. My I am using Deno Deploy also. Edit Oh, I see the issue. Stuff gets obfuscated in production. Instead of Hm. I'm not sure what to do about this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Ok, figured it out. As I said in the edit to the question, the issue is that stuff gets obfuscated in production, so instead of To fix it, I did |
Beta Was this translation helpful? Give feedback.
Ok, figured it out. As I said in the edit to the question, the issue is that stuff gets obfuscated in production, so instead of
props.children[0].type.namebeing"AlertHeader", it's just"A".To fix it, I did
child.type.name === AlertHeader.nameinstead ofchild.type.name === "AlertHeader".