Skip to content

Commit

Permalink
Swapped flow execution order to consider custom interceptor changes (#36
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wkok authored Dec 10, 2024
1 parent c13683d commit a4542a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hti/re_dash/alpha.cljd
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,9 @@
all-interceptors
(concat [do-fx-interceptor
(prime-cofx-interceptor event-vec)]
[flows/flow-interceptor]
@global-interceptors
interceptors
[flows/flow-interceptor])]
interceptors)]

(when-not registered-event
(throw (Exception. (str "Event not found: " event-id))))
Expand Down
4 changes: 2 additions & 2 deletions src/hti/re_dash/flows.cljd
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
(def flow-interceptor
(interceptors/->interceptor
:re-dash/flow
nil
(fn [{{db :db} :effects
:as context}]
(let [old-db @app-db/app-db
Expand All @@ -139,8 +140,7 @@
exec-flow-action)
new-db)))
(or db old-db)
sorted-ids))))
nil))
sorted-ids))))))


(defn sort-flow-ids
Expand Down

0 comments on commit a4542a8

Please sign in to comment.