-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing props in html page #13
Comments
Darn, I was hoping it was just me, it quick look at the source code seems that it extracts props from but if useShadowDom is true it reassigns webComponentInstance to shadowRoot. So, as a workaround you can disable shadowRoot. I then ran into the issue that props didn't seem to be set on the first render as it seems the render happens before webComponentConstructed where they get set... so I came up with the following quick hack:
|
After digging deeper I decided to implement the following instead of using this library.
|
I think this is similar to the issue #7. |
Hello,
I confirm that i have the same issue.
If I pass prop (ie name="Bob") in the html page,
this.props is empty ....
I am using Google Chrome on Windows
Regards
The text was updated successfully, but these errors were encountered: