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
Import order affects connectedCallback
order
#103
Comments
@sorvell @kevinpschaaf fwiw i think this is exactly what i was seeing today |
There are a few things here to note:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have 2 custom elements defined in the respective files:
They get imported and used in the main document:
In native CustomElements v1, the order of imports affects the order of
connectedCallback
calls, meaning that ifx-child
is imported beforex-parent
(like in the above example), itsconnectedCallback
will be invoked before thex-parent
oneThis does not happen with the v1 polyfill, which will output
The text was updated successfully, but these errors were encountered: