mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
get cached value before executing custom notification callbacks
This commit is contained in:
parent
8971cebfcd
commit
8787cb0509
@ -44,8 +44,12 @@ class DataServiceObserver(PropertyObserver):
|
||||
|
||||
self._update_cache_value(full_access_path, value, cached_value_dict)
|
||||
|
||||
# TODO: get the cached value again -> _update_cache_value already put the
|
||||
# right thing into the cache
|
||||
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user