mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-27 02:07:14 +03:00
eliminate some redundant evaluation requests
This commit is contained in:
parent
56bfe34588
commit
a517ea00a9
@ -221,7 +221,8 @@ refreshEvaluations : Action
|
||||
refreshEvaluations model =
|
||||
let go path = Maybe.map ((,) path) (Term.at (path `Path.snoc` Path.Arg) model.term)
|
||||
paths = Trie.keys (View.reactivePaths model.term)
|
||||
in (Just (Evaluations (List.filterMap go paths)), model)
|
||||
in if List.isEmpty paths then norequest model
|
||||
else (Just (Evaluations (List.filterMap go paths)), model)
|
||||
|
||||
combine : Action -> Action -> Action
|
||||
combine f g model =
|
||||
|
Loading…
Reference in New Issue
Block a user