See the full :ref:`Use State` docs for details Parameters: initial_value: The value initially assigned to the reference. Returns: A :class:`Ref` object.
(initial_value: _Type)
| 472 | |
| 473 | |
| 474 | def use_ref(initial_value: _Type) -> Ref[_Type]: |
| 475 | """See the full :ref:`Use State` docs for details |
| 476 | |
| 477 | Parameters: |
| 478 | initial_value: The value initially assigned to the reference. |
| 479 | |
| 480 | Returns: |
| 481 | A :class:`Ref` object. |
| 482 | """ |
| 483 | return _use_const(lambda: Ref(initial_value)) |
| 484 | |
| 485 | |
| 486 | def _use_const(function: Callable[[], _Type]) -> _Type: |
no test coverage detected