Skip to content

Commit bc8cc41

Browse files
committed
ok we can't do that
1 parent ac29df2 commit bc8cc41

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

reflex/state.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,8 +1287,6 @@ def __getattribute__(self, name: str) -> Any:
12871287
if not super().__getattribute__("__dict__"):
12881288
return super().__getattribute__(name)
12891289

1290-
name = name.removesuffix("_rx_state_")
1291-
12921290
# Fast path for dunder
12931291
if name.startswith("__"):
12941292
return super().__getattribute__(name)
@@ -1352,8 +1350,6 @@ def __setattr__(self, name: str, value: Any):
13521350
# unwrap proxy objects when assigning back to the state
13531351
value = value.__wrapped__
13541352

1355-
name = name.removesuffix("_rx_state_")
1356-
13571353
# Set the var on the parent state.
13581354
if name in self.inherited_vars or name in self.inherited_backend_vars:
13591355
setattr(self.parent_state, name, value)

0 commit comments

Comments
 (0)