Fork me on GitHub
#lein-figwheel
<
2017-12-28
>
dirklectisch08:12:37

How does one enable pretty printing at the Figwheel repl? I tried the following but it doesn’t seem to make a difference. I would like to display my data with some indentation so I can understand the deeply nested ones better.

dirklectisch08:12:43

dev:spoom.remotes.spotify=> (figwheel.client/set-repl-pprint true)
{:figwheel-repl-pprint true}
dev:spoom.remotes.spotify=> (om/query->ast [:aap])
{:type :root, :children [{:type :prop, :dispatch-key :aap, :key :aap}]}
dev:spoom.remotes.spotify=> (figwheel.client/set-repl-pprint false)
{:figwheel-repl-pprint false}
dev:spoom.remotes.spotify=> (om/query->ast [:aap])
{:type :root, :children [{:type :prop, :dispatch-key :aap, :key :aap}]}

dirklectisch09:12:40

nvm it does work! Just needed a bigger example.