Skip to content

Commit

Permalink
Avoid after-load metadata in examples that are used from demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Jan 29, 2025
1 parent c7ad0b4 commit 07bc86c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/geometry/shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{:app {:target :browser
:output-dir "target/public/js"
:asset-path "/js"
:devtools {:after-load geometry.core/run}
:modules {:main {:entries [geometry.core]
:init-fn geometry.core}}}}
:dependencies [[reagent "1.2.0"]]}
2 changes: 1 addition & 1 deletion examples/geometry/src/geometry/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@
(defn by-id [id]
(.getElementById js/document id))

(defn ^:dev/after-load ^:export run []
(defn ^:export run []
(rdom/render [main] (by-id "app")))
1 change: 1 addition & 0 deletions examples/simple/shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{:app {:target :browser
:output-dir "target/public/js"
:asset-path "/js"
:devtools {:after-load simpleexample.core/run}
:modules {:main {:entries [simpleexample.core]
:init-fn simpleexample.core/run}}}}
:dependencies [[reagent "1.2.0"]]}
2 changes: 1 addition & 1 deletion examples/simple/src/simpleexample/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
[clock]
[color-input]])

(defn ^:dev/after-load ^:export run []
(defn ^:export run []
(rdom/render [simple-example] (js/document.getElementById "app")))
1 change: 1 addition & 0 deletions examples/todomvc/shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{:app {:target :browser
:output-dir "target/public/js"
:asset-path "/js"
:devtools {:after-load todomvc.core/run}
:modules {:main {:entries [todomvc.core]
:init-fn todomvc.core/run}}}}
:dependencies [[reagent "1.2.0"]]}
2 changes: 1 addition & 1 deletion examples/todomvc/src/todomvc/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@
[:footer#info
[:p "Double-click to edit a todo"]]]))))

(defn ^:dev/after-load ^:export run []
(defn ^:export run []
(rdom/render [todo-app] (js/document.getElementById "app")))

0 comments on commit 07bc86c

Please sign in to comment.