Remove traces from localstorage

This commit is contained in:
Saskia Lindner 2017-08-29 14:53:32 +02:00
parent f7cf12c1bb
commit 60f6082c67
1 changed files with 2 additions and 10 deletions

View File

@ -94,7 +94,7 @@
(real-schedule)))))
(def traces (interop/ratom (localstorage/get "traces" [])))
(def traces (interop/ratom []))
(defn log-trace? [trace]
(let [rendering? (= (:op-type trace) :render)]
@ -192,15 +192,7 @@
filter-items (r/atom (localstorage/get "filter-items" []))
filter-type (r/atom :contains)
input-error (r/atom false)
trace-detail-expansions (r/atom (localstorage/get "trace-detail-expansion" {:show-all? false :overrides {}}))]
(add-watch traces
:update-traces
(fn [_ _ _ new-state]
(localstorage/save! "traces" new-state)))
(add-watch trace-detail-expansions
:update-trace-detail-expansions
(fn [_ _ _ new-state]
(localstorage/save! "trace-detail-expansion" new-state)))
trace-detail-expansions (r/atom {:show-all? false :overrides {}})]
(add-watch filter-items
:update-localstorage
(fn [_ _ _ new-state]