Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/reactive-python/reactpy
/ current
Method
current
src/py/reactpy/reactpy/_option.py:61–65 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
59
60
@property
61
def
current(self) -> _O:
62
try
:
63
return
self._current
64
except
AttributeError:
65
return
self._default
66
67
@current.setter
68
def
current(self, new: _O) -> None:
Callers
15
test_script_mount_unmount
Function · 0.45
test_script_re_run_on_content_change
Function · 0.45
test_script_from_src
Function · 0.45
test_simple_layout
Function · 0.45
test_nested_component_layout
Function · 0.45
test_hooks_for_keyed_components_get_garbage_collected
Function · 0.45
test_schedule_render_from_unmounted_hook
Function · 0.45
test_elements_and_components_with_the_same_key_can_be_interchanged
Function · 0.45
test_layout_does_not_copy_element_children_by_key
Function · 0.45
test_switching_node_type_with_event_handlers
Function · 0.45
test_switching_component_definition
Function · 0.45
test_changing_key_of_component_resets_state
Function · 0.45
Calls
2
set_current
Method · 0.95
unset
Method · 0.95
Tested by
15
test_script_mount_unmount
Function · 0.36
test_script_re_run_on_content_change
Function · 0.36
test_script_from_src
Function · 0.36
test_simple_layout
Function · 0.36
test_nested_component_layout
Function · 0.36
test_hooks_for_keyed_components_get_garbage_collected
Function · 0.36
test_schedule_render_from_unmounted_hook
Function · 0.36
test_elements_and_components_with_the_same_key_can_be_interchanged
Function · 0.36
test_layout_does_not_copy_element_children_by_key
Function · 0.36
test_switching_node_type_with_event_handlers
Function · 0.36
test_switching_component_definition
Function · 0.36
test_changing_key_of_component_resets_state
Function · 0.36