-
Notifications
You must be signed in to change notification settings - Fork 116
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
[React] bug: properties are not available when the component calls connectedCallback
when using the react wrapper
#458
Comments
Thanks for the issue! This project is currently maintained for the purposes of supporting Ionic Framework. At this time, only new issues & pull requests that support Ionic Framework will be prioritized. For the latest updates regarding the maintenance status of this project, please see this section of the project's README |
I just tested with the latest react-output-target v0.7.1, and the issue persists. |
@dgonzalezr thanks for filing the issue. Our team hasn't been able to take a look at this yet. If you are blocked by this I suggest to help us find a resolution to this as we can't provide an ETA due to a lot of competing resources. We are happy to assist on any technical questions. Cheers! |
Hi @christian-bromann, thank you for jumping in. I'm not completely blocked by this issue, as I can shift the logic to
Maybe I can use it as a starting point 🙂 |
Yes, awesome! Let me know if you have any questions. |
connectedCallback
when using the react wrapperconnectedCallback
when using the react wrapper
Prerequisites
Stencil Version
4.20.0
Stencil Framework Output Target
React
Stencil Framework Output Target Version
0.6.0
Current Behavior
After the latest changes carried on this PR, when using the library react output target, the properties are not available when the component calls
connectedCallback
, they are undefined, and become available when callingcomponentWillLoad
. Eg:this.first
andthis.middle
are undefined whenconnectedCallback
is called.Important
Please, note that this only happens when using the wrapper component generated by v0.6.0 of
@stencil/react-output-target
. If I use the web component, the properties values are available onconnectedCallback
. For the previous version of the output target, everything works as expected.Expected Behavior
Properties should be accessible on
connectedCallback
if their value has been set directly.Steps to Reproduce
Follow the steps described in the Issue 1 of the reproduction code below
Code Reproduction URL
https://github.com/dgonzalezr/nx-stencil
Additional Information
No response
The text was updated successfully, but these errors were encountered: