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

Function _make_element_model_state

src/py/reactpy/reactpy/core/layout.py:560–573  ·  view source on GitHub ↗
(
    parent: _ModelState,
    index: int,
    key: Any,
)

Source from the content-addressed store, hash-verified

558
559
560def _make_element_model_state(
561 parent: _ModelState,
562 index: int,
563 key: Any,
564) -> _ModelState:
565 return _ModelState(
566 parent=parent,
567 index=index,
568 key=key,
569 model=Ref(),
570 patch_path=f"{parent.patch_path}/children/{index}",
571 children_by_key={},
572 targets_by_event={},
573 )
574
575
576def _update_element_model_state(

Calls 2

RefClass · 0.90
_ModelStateClass · 0.85

Tested by

no test coverage detected