State
reflex.state.StateThe app Base State.
Fields
| Prop | Description |
|---|---|
parent_state: reflex.state.BaseState | None = None | |
substates: dict[str, reflex.state.BaseState] = <class 'dict'> | |
dirty_vars: set[str] = <class 'set'> | |
dirty_substates: set[str] = <class 'set'> | |
router_data: dict[str, typing.Any] = <class 'dict'> | |
router: reflex_core.vars.base.Field[reflex.istate.data.RouterData] = <class 'reflex.istate.data.RouterData'> | |
is_hydrated: bool = False |
Methods
| Signature | Description |
|---|---|
set_is_hydrated(*args: Any, **kwargs: Any) -> 'EventSpec' | An event handler responds to an event to update the state. Attributes: fn: The function to call in response to the event. state_full_name: The full name of the state class this event handler is attached to. Empty string means this event handler is a server side event. |
setvar(*args: 'Any') -> 'EventSpec' | A special event handler to wrap setvar functionality. |