(
old_life_cycle_state: _LifeCycleState,
new_component: ComponentType,
)
| 676 | |
| 677 | |
| 678 | def _update_life_cycle_state( |
| 679 | old_life_cycle_state: _LifeCycleState, |
| 680 | new_component: ComponentType, |
| 681 | ) -> _LifeCycleState: |
| 682 | return _LifeCycleState( |
| 683 | old_life_cycle_state.id, |
| 684 | # the hook is preserved across renders because it holds the state |
| 685 | old_life_cycle_state.hook, |
| 686 | new_component, |
| 687 | ) |
| 688 | |
| 689 | |
| 690 | _LifeCycleStateId = NewType("_LifeCycleStateId", str) |
no test coverage detected