You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm exploring the data validation feature of BindableReactiveProperty, but its initial condition complicates the setup process. Here's an example to illustrate:
In this example, after creating the property (1), HasErrors returns false, even though the internal value is default (null for a string). According to the validation logic, this should be considered invalid. Assignments in (2) and (3) correctly trigger the validation logic and update HasErrors accordingly.
Would it make sense for the EnableValidation() method to evaluate the validation logic immediately upon assignment? This change would ensure that the error state is consistent right from initialization.
The text was updated successfully, but these errors were encountered:
I'm exploring the data validation feature of
BindableReactiveProperty
, but its initial condition complicates the setup process. Here's an example to illustrate:In this example, after creating the property (1),
HasErrors
returnsfalse
, even though the internal value isdefault
(null
for a string). According to the validation logic, this should be considered invalid. Assignments in (2) and (3) correctly trigger the validation logic and updateHasErrors
accordingly.Would it make sense for the
EnableValidation()
method to evaluate the validation logic immediately upon assignment? This change would ensure that the error state is consistent right from initialization.The text was updated successfully, but these errors were encountered: