Get the current :class:`~reactpy.backend.types.Connection`'s scope.
()
| 24 | |
| 25 | |
| 26 | def use_scope() -> MutableMapping[str, Any]: # nocov |
| 27 | """Get the current :class:`~reactpy.backend.types.Connection`'s scope.""" |
| 28 | warn( |
| 29 | "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. " |
| 30 | "Call reactpy.use_scope instead.", |
| 31 | DeprecationWarning, |
| 32 | ) |
| 33 | |
| 34 | return use_connection().scope |
| 35 | |
| 36 | |
| 37 | def use_location() -> Location: # nocov |
nothing calls this directly
no test coverage detected