Skip to content
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

Convert mixins to controllers #38

Open
spelkey-ucd opened this issue Oct 7, 2021 · 0 comments
Open

Convert mixins to controllers #38

spelkey-ucd opened this issue Oct 7, 2021 · 0 comments

Comments

@spelkey-ucd
Copy link
Collaborator

Lit 2.0 has a new "controller" feature, which has a lot of overlap with mixins, but in many cases it's more appropriate to use a controller.

From Lit docs:

In general, if you're trying to decide whether to package a feature as a controller or a mixin, you should choose a controller unless the feature requires one of the following:
-Adding public API to the component.
-Very granular access to the component lifecycle.

spelkey-ucd added a commit that referenced this issue Oct 7, 2021
spelkey-ucd added a commit that referenced this issue Oct 8, 2021
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

No branches or pull requests

1 participant