(ctx-updater edges {:domino.events/keys [db] :domino.core/keys [model] :as ctx})
Reducer that updates context with new values updated in ctx from handler of each edge. New values are only stored when they are different from old values.
In changed cases, the following keys are updated: ::changed-paths => queue of affected paths ::db => temporary relevant db within context ::change-history => sequential history of changes. List of tuples of path-value pairs
Reducer that updates context with new values updated in ctx from handler of each edge. New values are only stored when they are different from old values. In changed cases, the following keys are updated: ::changed-paths => queue of affected paths ::db => temporary relevant db within context ::change-history => sequential history of changes. List of tuples of path-value pairs
(eval-traversed-edges {:domino.events/keys [changed-paths] :as ctx} graph)
(eval-traversed-edges {:domino.events/keys [changes] :as ctx} graph origin)
Given an origin and graph, update context with edges.
When an node has been visited (as an input), it cannot be considered for an output
Given an origin and graph, update context with edges. When an node has been visited (as an input), it cannot be considered for an output
(events-inputs-as-changes {:domino.core/keys [events-by-id db]} event-ids)
(try-event event ctx db old-outputs)
(try-event {:keys [handler inputs] :as event}
{:domino.core/keys [model] :as ctx}
db
old-outputs
cb)
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |