Browse Source

do not wrap __dict__ in mutable proxy (#5193)

Khaleel Al-Adhami 2 weeks ago
parent
commit
e4c0185063
1 changed files with 1 additions and 0 deletions
  1. 1 0
      reflex/state.py

+ 1 - 0
reflex/state.py

@@ -3920,6 +3920,7 @@ class MutableProxy(wrapt.ObjectProxy):
         if self._is_mutable_type(value) and __name not in (
         if self._is_mutable_type(value) and __name not in (
             "__wrapped__",
             "__wrapped__",
             "_self_state",
             "_self_state",
+            "__dict__",
         ):
         ):
             # Recursively wrap mutable attribute values retrieved through this proxy.
             # Recursively wrap mutable attribute values retrieved through this proxy.
             return self._wrap_recursive(value)
             return self._wrap_recursive(value)