-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add docs for useDefault #1396
base: main
Are you sure you want to change the base?
Add docs for useDefault #1396
Conversation
A live preview of this PR will be available at the URL(s) below. |
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.
🎉
packages/lit-dev-content/samples/properties/attributereflect/my-element.ts
Outdated
Show resolved
Hide resolved
packages/lit-dev-content/samples/properties/attributereflect/my-element.ts
Outdated
Show resolved
Hide resolved
packages/lit-dev-content/samples/properties/attributereflect/my-element.ts
Outdated
Show resolved
Hide resolved
packages/lit-dev-content/samples/properties/attributereflect/my-element.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Justin Fagnani <[email protected]>
Co-authored-by: Justin Fagnani <[email protected]>
Co-authored-by: Justin Fagnani <[email protected]>
</dt> | ||
<dd> | ||
|
||
Set to true to prevent initial attribute reflection for the default value when `reflect` is set to true, and to reset the property to its default value when its corresponding attribute is removed. For more information, see [Enabling attribute reflection](#reflected-attributes). |
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.
Do we want a specific note here that the initial value is used as the default, and that it's retained in memory?
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.
Added
Adds docs for lit/lit#4934. Publish on after that release.