Skip to content

Commit 0305c3f

Browse files
Copilotjaviercn
andcommitted
Update Resources.resx description with complete suggested text including lifecycle method recommendation
Co-authored-by: javiercn <[email protected]>
1 parent 93a68fa commit 0305c3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Analyzers/src/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
<value>Component parameters should be auto properties</value>
182182
</data>
183183
<data name="SupplyParameterFromFormShouldNotHavePropertyInitializer_Description" xml:space="preserve">
184-
<value>The value of a property decorated with [SupplyParameterFromForm] and initialized with a property initializer can be overwritten with null when the component receives parameters.</value>
184+
<value>The value of a property decorated with [SupplyParameterFromForm] and initialized with a property initializer can be overwritten with null when the component receives parameters. To ensure the initialized value is not overwritten, move the initialization to a component lifecycle method like OnInitialized or OnInitializedAsync</value>
185185
</data>
186186
<data name="SupplyParameterFromFormShouldNotHavePropertyInitializer_Format" xml:space="preserve">
187187
<value>Property '{0}' has [SupplyParameterFromForm] and a property initializer. This can be overwritten with null during form posts.</value>

0 commit comments

Comments
 (0)