10000 re-frisk preload · flexsurfer/ClojureRNProject@132523b · GitHub
[go: up one dir, main page]

Skip to content

Commit 132523b

Browse files
committed
re-frisk preload
1 parent 1b387d3 commit 132523b

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ Create `shadow-cljs.edn`
7474
[re-frame "0.11.0"]
7575
[re-frame-steroid "0.1.1"]
7676
[rn-shadow-steroid "0.1.1"]
77-
[re-frisk-rn "0.1.0"]]
77+
[re-frisk-rn "0.1.1"]]
7878

7979
:builds {:dev
8080
{:target :react-native
8181
:init-fn clojurernproject.core/init
8282
:output-dir "app"
8383
:devtools {:autoload true
84-
:after-load steroid.rn.core/reload}}}}
84+
:after-load steroid.rn.core/reload
85+
:preloads [re-frisk-rn.preload]}}}}
8586
```
8687

8788
Next, we need to initialize project as Clojure Deps, `deps.edn` will be used only for code inspection in IDE, if you know a better way pls file a PR
@@ -97,7 +98,7 @@ create `deps.edn` file
9798
re-frame {:mvn/version "0.11.0"}
9899
re-frame-steroid {:mvn/version "0.1.1"}
99100
rn-shadow-steroid {:mvn/version "0.1.1"}
100-
re-frisk-rn {:mvn/version "0.1.0"}}
101+
re-frisk-rn {:mvn/version "0.1.1"}}
101102
:paths ["src"]}
102103
```
103104

@@ -303,22 +304,7 @@ Good:
303304

304305
### 6. Devtools
305306

306-
let's add re-frisk debugging tool and see what's exactly happening in the app
307-
308-
core.cljs
309-
310-
```clojure
311-
(ns clojurernproject.core
312-
(:require ....
313-
[re-frisk-rn.core :as rfr]))
314-
315-
(defn init []
316-
(rfr/enable)
317-
(re-frame/dispatch [:init-app-db])
318-
(rn/register-reload-comp "ClojureRNProject" root-comp))
319-
```
320-
321-
run the tool
307+
let's run re-frisk debugging tool and see what's exactly happening in the app
322308

323309
Terminal 4: `shadow-cljs run re-frisk-rn.core/start`
324310

0 commit comments

Comments
 (0)
0