@@ -175,15 +175,11 @@ def __set__(self, obj: Reactable, value: ReactiveType) -> None:
175175 current_value = getattr (obj , name )
176176 # Check for validate function
177177 validate_function = getattr (obj , f"validate_{ name } " , None )
178- # Check if this is the first time setting the value
179- first_set = getattr (obj , f"__first_set_{ self .internal_name } " , True )
180178 # Call validate
181179 if callable (validate_function ):
182180 value = validate_function (value )
183181 # If the value has changed, or this is the first time setting the value
184- if current_value != value or first_set or self ._always_update :
185- # Set the first set flag to False
186- setattr (obj , f"__first_set_{ self .internal_name } " , False )
182+ if current_value != value or self ._always_update :
187183 # Store the internal value
188184 setattr (obj , self .internal_name , value )
189185 # Check all watchers
@@ -200,7 +196,6 @@ def _check_watchers(cls, obj: Reactable, name: str, old_value: Any):
200196 obj (Reactable): The reactable object.
201197 name (str): Attribute name.
202198 old_value (Any): The old (previous) value of the attribute.
203- first_set (bool, optional): True if this is the first time setting the value. Defaults to False.
204199 """
205200 _rich_traceback_omit = True
206201 # Get the current value.
0 commit comments