Skip to content

Investigate using # private member prefix in Lit templates #2563

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

Open
SuaYoo opened this issue Apr 23, 2025 · 1 comment
Open

Investigate using # private member prefix in Lit templates #2563

SuaYoo opened this issue Apr 23, 2025 · 1 comment
Labels
devex/tooling Tooling and developer experience work front end Requires front end dev work investigation Research and/or prototyping before dev work

Comments

@SuaYoo
Copy link
Member

SuaYoo commented Apr 23, 2025

Investigate and follow-up with refactor if this is low effort to implement.

@SuaYoo SuaYoo added devex/tooling Tooling and developer experience work front end Requires front end dev work investigation Research and/or prototyping before dev work labels Apr 23, 2025
@emma-sg
Copy link
Member

emma-sg commented Apr 23, 2025

I was wrong about this being an issue with templates — private members work fine in templates, but they can't be decorated (e.g. with @state() etc) because they're fully private and can't be accessed from outside of their class (i.e. decorator function declarations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devex/tooling Tooling and developer experience work front end Requires front end dev work investigation Research and/or prototyping before dev work
Projects
Status: Triage
Development

No branches or pull requests

2 participants