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

Function _new_root_model_state

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

Source from the content-addressed store, hash-verified

482
483
484def _new_root_model_state(
485 component: ComponentType, schedule_render: Callable[[_LifeCycleStateId], None]
486) -> _ModelState:
487 return _ModelState(
488 parent=None,
489 index=-1,
490 key=None,
491 model=Ref(),
492 patch_path="",
493 children_by_key={},
494 targets_by_event={},
495 life_cycle_state=_make_life_cycle_state(component, schedule_render),
496 )
497
498
499def _make_component_model_state(

Callers 1

__aenter__Method · 0.85

Calls 3

RefClass · 0.90
_ModelStateClass · 0.85
_make_life_cycle_stateFunction · 0.85

Tested by

no test coverage detected