1
0
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:
thatmattlove
2021-09-16 13:46:50 -07:00
parent c99f98a6f0
commit e06ea5ecb9
30 changed files with 549 additions and 263 deletions

View File

@@ -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(