Skip to content

Commit 3681cfe

Browse files
author
Steve Orvell
committed
Address feedbacj
1 parent 3185dc6 commit 3681cfe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/lit-dev-content/site/docs/v3/components/properties.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ When using TypeScript, this field should generally match the TypeScript type dec
279279
</dt>
280280
<dd>
281281

282-
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).
282+
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.
283283

284+
The default value is the property's initial value set in the constructor or with an [auto-accessor](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#auto-accessors-in-classes). This value is retained in memory so it's a good practice to avoid setting `useDefault: true` for non-primitive Object/Array properties. For more information, see [Enabling attribute reflection](#reflected-attributes) and [Best practices when reflecting attributes](#best-practices-when-reflecting-attributes).
284285

285286
</dd>
286287

@@ -590,7 +591,7 @@ When the property changes, Lit sets the corresponding attribute value as describ
590591

591592
</div>
592593

593-
### Best practices when reflecting attributes
594+
### Best practices when reflecting attributes {#best-practices-when-reflecting-attributes}
594595

595596
To ensure elements behave as expected and perform well, try to follow these best practices when reflecting attributes:
596597

0 commit comments

Comments
 (0)