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

[docs] Polymer features that aren't in LitElement #101

Closed
rictic opened this issue Jun 12, 2018 · 5 comments
Closed

[docs] Polymer features that aren't in LitElement #101

rictic opened this issue Jun 12, 2018 · 5 comments

Comments

@rictic
Copy link
Contributor

rictic commented Jun 12, 2018

It looks like observers and computed functions are not supported (AIU #30 (comment)), and instead you just do some logic in either didRender or _render, which is reasonable enough, but it'd be nice for it to be documented.

I started with the decorators linked here: #7 (comment) and their typings mention observer and computed.

@PaulHMason
Copy link

Observers and computed functions aren't a feature of lit-element because they aren't required, so it doesn't really make sense to document that fact. The confusion stems from people comparing lit-element to a Polymer element, but they really aren't related and drawing comparisons will probably make things more confusing (especially to people who aren't familiar with Polymer).

@rictic
Copy link
Contributor Author

rictic commented Jun 14, 2018

LitElement uses a properties block in a very similar way to Polymer, and the README mentions that it leverages Polymer's properties mixins. A sentence or two clarifying what features of the properties block are supported / not supported would prevent confusion for users familiar with Polymer.

@akc42
Copy link

akc42 commented Jul 15, 2018

Yes, I just wasted a day chasing down the fact that camelcase propertied don't map to properties in the template with a "-" in them. Event though this was a lit element sitting inside a polymer 3 template

#128

@ernsheong
Copy link
Contributor

query and queryAll decorators are also undocumented

@ghost ghost self-assigned this Dec 13, 2018
@ghost
Copy link

ghost commented Dec 13, 2018

@ghost ghost changed the title Better document unimplemented features [docs] Polymer features that aren't in LitElement Dec 13, 2018
@ghost ghost removed their assignment Dec 18, 2018
@ghost ghost closed this as completed Jan 8, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants