From 1428e5ae6bf8aac113c8d8ed0403721d061397e0 Mon Sep 17 00:00:00 2001 From: yshepilov Date: Fri, 21 Apr 2023 20:25:21 +0200 Subject: [PATCH] #655 fixed reloading data, when nothing changes --- src/react/properties.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/react/properties.py b/src/react/properties.py index 398447fd..8e56158c 100644 --- a/src/react/properties.py +++ b/src/react/properties.py @@ -154,6 +154,9 @@ def __setitem__(self, key: _KT, item: _VT) -> None: super().__setitem__(key, item) + if item == old_value: + return + self._notify_observers(key, old_value, item) def __delitem__(self, key: _KT) -> None: