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

Function use_location

src/py/reactpy/reactpy/core/hooks.py:270–272  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

268
269
270def use_location() -> Location:
271 """Get the current :class:`~reactpy.backend.types.Connection`'s location."""
272 return use_connection().location
273
274
275class _ContextProvider(Generic[_Type]):

Callers

nothing calls this directly

Calls 1

use_connectionFunction · 0.70

Tested by

no test coverage detected