Get the current :class:`~reactpy.backend.types.Connection`'s location.
()
| 35 | |
| 36 | |
| 37 | def 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 |
nothing calls this directly
no test coverage detected