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

Add docs for useDefault #1396

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Add docs for useDefault #1396

wants to merge 11 commits into from

Conversation

sorvell
Copy link
Member

@sorvell sorvell commented Feb 4, 2025

Adds docs for lit/lit#4934. Publish on after that release.

@sorvell sorvell requested a review from justinfagnani February 4, 2025 19:11
Copy link

github-actions bot commented Feb 4, 2025

A live preview of this PR will be available at the URL(s) below.
The latest URL will be appended to this comment on each push.
Each build takes ~5-10 minutes, and will 404 until finished.

https://pr1396-39b25a0---lit-dev-5ftespv5na-uc.a.run.app/

Copy link
Contributor

@justinfagnani justinfagnani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@sorvell sorvell changed the title Add docs for defaultValue Add docs for useDefault Mar 16, 2025
@sorvell sorvell requested a review from justinfagnani March 17, 2025 13:47
@sorvell sorvell requested a review from justinfagnani March 19, 2025 13:22
</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).
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

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

Successfully merging this pull request may close these issues.

2 participants