only update cache and execute notification callbacks if attribute is public and has changed

This commit is contained in:
Mose Müller 2024-03-05 13:56:02 +01:00
parent 7aacc21010
commit b8a52c2e6a

View File

@ -42,16 +42,16 @@ class DataServiceObserver(PropertyObserver):
):
logger.debug("'%s' changed to '%s'", full_access_path, value)
self._update_cache_value(full_access_path, value, cached_value_dict)
self._update_cache_value(full_access_path, value, cached_value_dict)
cached_value_dict = deepcopy(
self.state_manager._data_service_cache.get_value_dict_from_cache(
full_access_path
cached_value_dict = deepcopy(
self.state_manager._data_service_cache.get_value_dict_from_cache(
full_access_path
)
)
)
for callback in self._notification_callbacks:
callback(full_access_path, value, cached_value_dict)
for callback in self._notification_callbacks:
callback(full_access_path, value, cached_value_dict)
if isinstance(value, ObservableObject):
self._update_property_deps_dict()