Skip to content

Commit c15eb54

Browse files
authored
Merge pull request #6 from minimal-xyz/hook
use after-load hook
2 parents e141c6f + f688aa8 commit c15eb54

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

shadow-cljs.edn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
:builds {:app {:output-dir "target/"
66
:asset-path "."
77
:target :browser
8-
:modules {:main {:init-fn app.main/main!}}
9-
:devtools {:after-load app.main/reload!}}}}
8+
:modules {:main {:init-fn app.main/main!}}}}}

src/app/main.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
(defn main! []
1010
(println "[main]: loading"))
1111

12-
(defn reload! []
12+
(defn ^:dev/after-load reload! []
1313
(println "[main] reloaded lib:" lib/c lib/d)
1414
(println "[main] reloaded:" a b))

0 commit comments

Comments
 (0)