Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/reflex-dev/reflex
/ MainState
Class
MainState
tests/units/test_state.py:1312–1313 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1310
""
"Test that the child state computed vars can reference parent state vars."
""
1311
1312
class
MainState(BaseState):
1313
v: int = 2
1314
1315
class
ChildState(MainState):
1316
@computed_var
Callers
3
test_child_state
Function · 0.85
test_conditional_computed_vars
Function · 0.85
test_event_handlers_call_other_handlers
Function · 0.85
Calls
no outgoing calls
Tested by
3
test_child_state
Function · 0.68
test_conditional_computed_vars
Function · 0.68
test_event_handlers_call_other_handlers
Function · 0.68