Skip to content

Commit 9ed6ab2

Browse files
committed
Use initial-config from devtools, not default-config
Users can configure cljs-devtools via compiler options. For instance: {... :builds {:app {... :dev {:compiler-options {... :external-config {:devtools/config {:min-expandable-sequable-count-for-well-known-types 1 :features-to-install [:formatters :hints]}}}}}}} Now, when users configure cljs-devtools, our jsonml views (aka. "pods") will pick up on that. For: #416
1 parent 6456bdb commit 9ed6ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/day8/re_frame_10x/components/cljs_devtools.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
[day8.re-frame-10x.tools.reader.edn :as reader.edn]
2626
[day8.re-frame-10x.panels.settings.subs :as settings.subs]))
2727

28-
(def default-config @devtools.prefs/default-config)
28+
(def initial-config @devtools.prefs/initial-config)
2929

3030
(defn base-config
3131
[]
@@ -64,7 +64,7 @@
6464
;; TODO: If we expose ambiance and/or syntax color scheme as settings will need to fix this, maybe by recalculating
6565
;; at the time the setting is changed/loaded.
6666
(def custom-config
67-
(merge default-config (base-config) #_bright-ambiance-config))
67+
(merge initial-config (base-config) #_bright-ambiance-config))
6868

6969
(defn header [value config & [{:keys [render-paths?]}]]
7070
(with-cljs-devtools-prefs

0 commit comments

Comments
 (0)