MCPcopy Index your code
hub / github.com/reactive-python/reactpy / _make_life_cycle_state

Function _make_life_cycle_state

src/py/reactpy/reactpy/core/layout.py:666–675  ·  view source on GitHub ↗
(
    component: ComponentType,
    schedule_render: Callable[[_LifeCycleStateId], None],
)

Source from the content-addressed store, hash-verified

664
665
666def _make_life_cycle_state(
667 component: ComponentType,
668 schedule_render: Callable[[_LifeCycleStateId], None],
669) -> _LifeCycleState:
670 life_cycle_state_id = _LifeCycleStateId(uuid4().hex)
671 return _LifeCycleState(
672 life_cycle_state_id,
673 LifeCycleHook(lambda: schedule_render(life_cycle_state_id)),
674 component,
675 )
676
677
678def _update_life_cycle_state(

Callers 3

_new_root_model_stateFunction · 0.85

Calls 2

LifeCycleHookClass · 0.90
_LifeCycleStateClass · 0.85

Tested by

no test coverage detected