-
Notifications
You must be signed in to change notification settings - Fork 401
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
fix: v2 non-field api support #5178
Conversation
@@ -0,0 +1,14 @@ | |||
<x-parent> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this test for symmetry (I know it is covered elsewhere too)
@@ -78,7 +78,7 @@ export class LightningElement implements PropsAvailableAtConstruction { | |||
[SYMBOL__SET_INTERNALS]( | |||
props: Properties, | |||
attrs: Attributes, | |||
publicFields: Set<string>, | |||
api: Set<string>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like publicFields
better. Makes the high-level intent more obvious.
import { LightningElement, api } from 'lwc'; | ||
|
||
export default class Child extends LightningElement { | ||
@api set setterGetterApi(value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@api set setterGetterApi(value) { | |
@api set setter(value) { |
Can we also add a @api get getter
in this test, to make sure we cover both?
Details
Does this pull request introduce a breaking change?
Does this pull request introduce an observable change?
GUS work item
W-17701540