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

Function hotswap

src/py/reactpy/reactpy/widgets.py:92–102  ·  view source on GitHub ↗
(
    update_on_change: bool = False,
)

Source from the content-addressed store, hash-verified

90
91
92def hotswap(
93 update_on_change: bool = False,
94) -> tuple[_MountFunc, ComponentConstructor]: # nocov
95 warn(
96 "The 'hotswap' function is deprecated and will be removed in a future release",
97 DeprecationWarning,
98 stacklevel=2,
99 )
100 from reactpy.testing.backend import _hotswap
101
102 return _hotswap(update_on_change)

Callers

nothing calls this directly

Calls 2

warnFunction · 0.90
_hotswapFunction · 0.90

Tested by

no test coverage detected