فهرست منبع

remove that suffix

Khaleel Al-Adhami 3 هفته پیش
والد
کامیت
ac29df20b4
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      reflex/state.py

+ 2 - 0
reflex/state.py

@@ -1287,6 +1287,8 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow):
         if not super().__getattribute__("__dict__"):
             return super().__getattribute__(name)
 
+        name = name.removesuffix("_rx_state_")
+
         # Fast path for dunder
         if name.startswith("__"):
             return super().__getattribute__(name)