contrast the presentation of the top level form directly under the event tab
(re-frame/reg-event-db
::let
(fn-traced [db _]
(let [a 10
b (+ a 20)]
(+ a b))
db))
Instead of just 'db' as shown in the above image
The whole form should be displayed as shown below.
::let
(fn-traced [db _]
(let [a 10
b (+ a 20)]
(+ a b)
db)))
I suspect the difference is because the fn-traced macro in the first example contains 2 top level forms (i.e. an implied do) while the second example contains only one top level form
contrast the presentation of the top level form directly under the event tab
Instead of just 'db' as shown in the above image The whole form should be displayed as shown below.
I suspect the difference is because the fn-traced macro in the first example contains 2 top level forms (i.e. an implied do) while the second example contains only one top level form