-
Notifications
You must be signed in to change notification settings - Fork 394
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
Reactivity only works for non-bracket-notation string properties #4547
Comments
To be more specific, it seems that reactivity only works when the prop is a valid identifier -- quoted |
@wjhsf I included tests for those cases in my PR |
@nolanlawson could you update this issue with your latest thoughts? Thanks! |
|
In the above example, only
reg
is a reactive property. The other properties are non-reactive, because@lwc/babel-plugin-component
does not recognize them as reactive properties and doesn't register them as such:Repro showing reactivity not working correctly
This is definitely an edge case of an edge case, but maybe it's something we should support? If not, it's at least worth documenting in this GitHub issue.
Full repro for posterity
The text was updated successfully, but these errors were encountered: