Fork me on GitHub
#om
<
2018-06-05
>
n2o13:06:07

Is there a way to get the last transactions uuids from my om.next reconciler? Or are they only printed to the console? I want to catch them to create a browsable history

michieljoris13:06:18

You can add

:tx-listen (fn [tx-data {:keys [tx ret sends]}]
                                         (timbre/info tx)
                                         (timbre/info ret)
                                         (timbre/info sends))
to the reconciler config map.

n2o13:06:13

uuh sounds good. Thanks 🙂

n2o13:06:47

Hm okay, but I can't find the transaction UUID which can be used for om.next/from-history... I will take a closer look to the returned tx-data and try to find it somewhere

michieljoris13:06:52

I use

(defn mutation-history [reconciler]
     (js->clj (.-arr (-> reconciler :config :history))))

👍 4
michieljoris14:06:46

There, I'm struggling a bit with the slack editor here

n2o14:06:50

I just found :history in the reconciler, which is exactly what i wanted. thanks for your help and your mutation function 🙂