Skip to content

Commit

Permalink
#655 fixed reloading data, when nothing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Apr 21, 2023
1 parent 8635654 commit 1428e5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/react/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1428e5a

Please sign in to comment.