-
Notifications
You must be signed in to change notification settings - Fork 396
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
Components do not respect observedAttributes/attributeChangedCallback #2972
Labels
Comments
This issue has been linked to a new work item: W-11534181 |
This was referenced Aug 2, 2022
lwc/packages/@lwc/engine-core/src/framework/base-bridge-element.ts Lines 84 to 114 in acc19c6
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
LWC components do not respect
observedAttributes
orattributeChangedCallback
.attributeChangedCallback
is never called.Create an LWC component:
The attributes are never observed:
Steps to Reproduce
Repro (look in the console)
Expected Results
Attributes are observed
Actual Results
Attributes are not observed
Possible Solution
Use properties and
@track
instead of attributesThe text was updated successfully, but these errors were encountered: