Don't convert Clojure objects to JS objects

- Add docs to suggest use of cljs-devtools
This commit is contained in:
Daniel Compton 2017-09-01 13:24:02 +12:00
parent 9a4072ddf8
commit 4451982037
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ If you are using leiningen, modify `project.clj` in the following ways. When puz
:preloads [day8.re-frame.trace.preload]}}]}
```
[cljs-devtools](https://github.com/binaryage/cljs-devtools) is not required to use re-frame-trace, but it is highly recommended.
## Usage
- Start up your application.

View File

@ -200,7 +200,7 @@
(when show-row?
[:tr {:key (str id "-details")}
[:td.trace-details {:col-span 3
:on-click #(.log js/console (clj->js tags))}
:on-click #(.log js/console tags)}
(let [tag-str (with-out-str (pprint/pprint tags))
string-size-limit 400]
(if (< string-size-limit (count tag-str))