mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-22 23:08:20 +00:00
Better explanation of router's handling of exceptions.
This commit is contained in:
parent
c4b3e0f8f8
commit
6c55235160
@ -33,8 +33,9 @@
|
||||
(do (flush) (<! (timeout 20))) ;; wait just over one annimation frame (16ms), to rensure all pending GUI work is flushed to the DOM.
|
||||
(<! (timeout 0)))] ;; just in case we are handling one dispatch after an other, give the browser back control to do its stuff
|
||||
(try
|
||||
(handle event-v) ;; XXX There should be a plugable place to write exceptions and wanrs
|
||||
(catch js/Object e (.error js/console e))) ;; exceptions are a special kind of rubbish when you are in a goloop. So catch it here and print.
|
||||
(handle event-v) ;; XXX There should be a plugable place to write exceptions and warns
|
||||
(catch js/Object e
|
||||
(.error js/console e))) ;; exceptions are a special kind of rubbish when you are in a goloop. So catch it here and print.
|
||||
(recur)))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user