mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-24 07:48:14 +00:00
Reset collected traces after every callback has had them delivered
Previously only the first tracing callback would get them.
This commit is contained in:
parent
8da17fb016
commit
5271019f4a
@ -53,14 +53,14 @@
|
||||
|
||||
(def run-tracing-callbacks!
|
||||
(debounce
|
||||
(fn []
|
||||
(fn tracing-cb-debounced []
|
||||
(doseq [[k cb] @trace-cbs]
|
||||
(try (cb @traces)
|
||||
#?(:clj (catch Exception e
|
||||
(console :error "Error thrown from trace cb" k "while storing" @traces e)))
|
||||
#?(:cljs (catch :default e
|
||||
(console :error "Error thrown from trace cb" k "while storing" @traces e))))
|
||||
(reset! traces [])))
|
||||
(console :error "Error thrown from trace cb" k "while storing" @traces e)))))
|
||||
(reset! traces []))
|
||||
50))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user