MCPcopy Create free account
hub / github.com/reflex-dev/reflex / _is_mutable

Method _is_mutable

reflex/istate/proxy.py:94–102  ·  view source on GitHub ↗

Check if the state is mutable. Returns: Whether the state is mutable.

(self)

Source from the content-addressed store, hash-verified

92 self._self_parent_state_proxy = parent_state_proxy
93
94 def _is_mutable(self) -> bool:
95 """Check if the state is mutable.
96
97 Returns:
98 Whether the state is mutable.
99 """
100 if self._self_parent_state_proxy is not None:
101 return self._self_parent_state_proxy._is_mutable() or self._self_mutable
102 return self._self_mutable
103
104 async def __aenter__(self) -> Self:
105 """Enter the async context manager protocol.

Callers 5

__getattr__Method · 0.95
__setattr__Method · 0.95
get_substateMethod · 0.95
get_stateMethod · 0.95
_mark_dirtyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected