Skip to content

Commit 4c8cbd6

Browse files
committed
Step 11 - Add figwheel hooks for HMR
This is not doing much other than to show that we use hooks to provide us with setup and teardown functions to allow us to write reloadable code
1 parent ebdccd7 commit 4c8cbd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tallex/time_dive.cljs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
(ns tallex.time-dive)
1+
(ns ^:figwheel-hooks tallex.time-dive)
22

3-
(js/console.log "Hello, Time Dive!")
3+
(defn ^:after-load re-render []
4+
(js/console.log "Hello, Time Dive!"))

0 commit comments

Comments
 (0)