Skip to content

Conversation

@jhefferman-sfdc
Copy link
Contributor

Details

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

GUS work item

W-20095875

@jhefferman-sfdc jhefferman-sfdc requested a review from a team as a code owner November 4, 2025 03:54
// that rendering engine can track
addTrustedSignal(this);
}
[lwcSignal] = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds a writable/configurable/enumerable property to the signal instance. Use Object.defineProperty in the constructor to make it non-enumerable. Alternatively, it might make sense to define it on the prototype, instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class fields with Symbol keys are non-enumerable by default. I'm not able to enumerate on it anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot of code

We use the babel polyfill for that syntax, though, and maybe the polyfill makes it non-enumerable?

@jhefferman-sfdc jhefferman-sfdc marked this pull request as draft November 6, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants