-
Notifications
You must be signed in to change notification settings - Fork 966
[lit-html] Add the until
directive.
#1389
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
Conversation
Fix lit-element import paths For now, build template-shadowroot as part of lit-ssr Add lit-ssr tests to CI Fix merge error (Template:_options) Remove tsconfig.tsbuildinfo Uncomment element tests ffrom server-only suite Fix return value of createRenderRoot patch
Rename $litPrivate -> $private Fix demo hydration README updates
Some minor cleanup included
Co-authored-by: Abdón Rodríguez Davila <a@abdonrd.com>
Rename Directive:resolve -> _resolve Add comments
…ously in both `render` and `update`.
I merged |
`_state` maps parts to the last set of values provided to a directive and the index of the last value from that list that was rendered. It needs to be an instance property because the mapping between parts and directives is not always one-to-one. Particularly, for interpolated AttributeParts, the mapping can be one-to-many, which can cause the multiple directives associated with that single part to overwrite each other's state if they key only by the associated part.
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.
LGTM
Oh one more tiny thing, please update the README to remove |
Ok, updated. I also found that it was listed as removed in the CHANGELOG so I removed that. I'll merge once the tests pass. |
Fixes #1356.
A few of the old tests are broken currently: some seem related to timing and others seem related toEventPart
s.This PR also changes lit-html itself in a few ways:
AttributePart
are now passed their index in theAttributePart
's values array.setPartValue
now takes anindex
when setting anAttributePart
's value.