mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
Add separate hooks for major state objects, add tests
This commit is contained in:
@@ -14,9 +14,8 @@ if TYPE_CHECKING:
|
||||
from hyperglass.models.api.query import Query
|
||||
from hyperglass.models.config.devices import Device
|
||||
|
||||
_state = use_state()
|
||||
MESSAGES = _state.params.messages
|
||||
TEXT = _state.params.web.text
|
||||
(MESSAGES := use_state("params").messages)
|
||||
(TEXT := use_state("params").web.text)
|
||||
|
||||
|
||||
class ScrapeError(
|
||||
|
||||
Reference in New Issue
Block a user