0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

🔧 Small fix of debug functions

This commit is contained in:
Andrés Moya 2022-04-29 11:05:04 +02:00
parent 0afbf02443
commit 151de33586

View file

@ -91,7 +91,6 @@
(defn ^:export tap
"Transducer function that can execute a side-effect `effect-fn` per input"
[effect-fn]
(fn [rf]
(fn
([] (rf))
@ -154,13 +153,14 @@
nil)
(defn ^:export dump-buffer []
(logjs "state" @st/last-events)
(logjs "last-events" @st/last-events)
nil)
(defn ^:export get-state [str-path]
(let [path (->> (str/split str-path " ")
(map d/read-string))]
(clj->js (get-in @st/state path)))
(map d/read-string)
vec)]
(js/console.log (clj->js (get-in @st/state path))))
nil)
(defn dump-objects'