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

Function use_location

src/py/reactpy/reactpy/backend/hooks.py:37–45  ·  view source on GitHub ↗

Get the current :class:`~reactpy.backend.types.Connection`'s location.

()

Source from the content-addressed store, hash-verified

35
36
37def use_location() -> Location: # nocov
38 """Get the current :class:`~reactpy.backend.types.Connection`'s location."""
39 warn(
40 "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. "
41 "Call reactpy.use_location instead.",
42 DeprecationWarning,
43 )
44
45 return use_connection().location

Callers

nothing calls this directly

Calls 2

warnFunction · 0.90
use_connectionFunction · 0.70

Tested by

no test coverage detected