mirror of
https://github.com/status-im/re-frame-10x.git
synced 2025-01-12 15:14:55 +00:00
Remove traces from localstorage
This commit is contained in:
parent
f7cf12c1bb
commit
60f6082c67
@ -94,7 +94,7 @@
|
|||||||
(real-schedule)))))
|
(real-schedule)))))
|
||||||
|
|
||||||
|
|
||||||
(def traces (interop/ratom (localstorage/get "traces" [])))
|
(def traces (interop/ratom []))
|
||||||
|
|
||||||
(defn log-trace? [trace]
|
(defn log-trace? [trace]
|
||||||
(let [rendering? (= (:op-type trace) :render)]
|
(let [rendering? (= (:op-type trace) :render)]
|
||||||
@ -192,15 +192,7 @@
|
|||||||
filter-items (r/atom (localstorage/get "filter-items" []))
|
filter-items (r/atom (localstorage/get "filter-items" []))
|
||||||
filter-type (r/atom :contains)
|
filter-type (r/atom :contains)
|
||||||
input-error (r/atom false)
|
input-error (r/atom false)
|
||||||
trace-detail-expansions (r/atom (localstorage/get "trace-detail-expansion" {:show-all? false :overrides {}}))]
|
trace-detail-expansions (r/atom {: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)))
|
|
||||||
(add-watch filter-items
|
(add-watch filter-items
|
||||||
:update-localstorage
|
:update-localstorage
|
||||||
(fn [_ _ _ new-state]
|
(fn [_ _ _ new-state]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user