You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aztack
changed the title
imported component generated two class definition and constructor called twice
Imported component generated two class definition and constructor called twice
Sep 9, 2019
aztack
changed the title
Imported component generated two class definition and constructor called twice
Imported component generated two class definitions and constructors get called twice
Sep 9, 2019
Why are you passing arguments in the constructor? I don’t think this could ever work... I might add an error in the compiler when creating a constructor with any argument
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request
Current behavior:
Imported component compiled into two piece of code.
For example, I have comoponent which importing component
When Tree component nested TreeItem(s), constructor of TreeItem in above two files both get called.
Expected behavior:
Steps to reproduce:
https://github.com/aztack/nest-comp-bug
Other information:
One more redundant tree root item generated.
Two different constructors of TreeItem get called:
render function of TreeItem.
console.log(id)
get called twice. (where id is a global auto increased number for debugging purpose)Seperate TreeItem definition in tree-item.entry.js:
Inlined TreeItem definition in tree.entry.js:
The text was updated successfully, but these errors were encountered: