diff --git a/frontend/deps.edn b/frontend/deps.edn index 606fa73c9..c158bea0e 100644 --- a/frontend/deps.edn +++ b/frontend/deps.edn @@ -9,7 +9,7 @@ funcool/beicon {:mvn/version "2021.07.05-1"} funcool/okulary {:mvn/version "2022.04.11-16"} - funcool/potok {:mvn/version "2022.04.28-67"} + funcool/potok {:mvn/version "2022.12.16-71"} funcool/tubax {:mvn/version "2021.05.20-0"} funcool/rumext diff --git a/frontend/src/app/main/store.cljs b/frontend/src/app/main/store.cljs index 431ff6d3a..0c66507fc 100644 --- a/frontend/src/app/main/store.cljs +++ b/frontend/src/app/main/store.cljs @@ -23,8 +23,22 @@ [type data] (ptk/data-event type data)) +;;(def debug-exclude-events +;; #{:app.main.data.workspace.notifications/handle-pointer-update +;; :app.main.data.workspace.notifications/handle-pointer-send +;; :app.main.data.workspace.persistence/update-persistence-status +;; :app.main.data.workspace.changes/update-indices +;; :app.main.data.websocket/send-message +;; :app.main.data.workspace.selection/change-hover-state}) +;; (def ^:dynamic *debug-events* false) + (defonce state (ptk/store {:resolve ptk/resolve + ;;:on-event (fn [e] + ;; (when (and *debug-events* + ;; (ptk/event? e) + ;; (not (debug-exclude-events (ptk/type e)))) + ;; (.log js/console (str "[stream]: " (ptk/repr-event e)) ))) :on-error (fn [e] (@on-error e))})) (defonce stream