This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-02
Channels
- # announcements (3)
- # asami (29)
- # babashka (62)
- # beginners (131)
- # biff (7)
- # calva (31)
- # cider (5)
- # clerk (14)
- # clj-kondo (3)
- # cljsrn (12)
- # clojars (18)
- # clojure (72)
- # clojure-austin (17)
- # clojure-dev (6)
- # clojure-europe (31)
- # clojure-indonesia (1)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojure-sweden (11)
- # clojure-uk (6)
- # clr (47)
- # conjure (42)
- # cursive (88)
- # datalevin (2)
- # datomic (25)
- # emacs (42)
- # exercism (1)
- # fulcro (10)
- # funcool (8)
- # gratitude (2)
- # honeysql (16)
- # introduce-yourself (5)
- # jobs-discuss (26)
- # leiningen (5)
- # lsp (31)
- # malli (21)
- # matcher-combinators (14)
- # missionary (2)
- # nbb (1)
- # off-topic (40)
- # pathom (38)
- # portal (2)
- # re-frame (7)
- # reagent (18)
- # reitit (1)
- # releases (5)
- # shadow-cljs (62)
- # sql (12)
- # testing (4)
- # xtdb (37)
I’m using Krell, Re-frame 1.3.0, React-Native 0.70.6. What is the best tool to use to track re-frame (database changes, events, subscriptions…)?
Wasn't there a tool for tracking re-frame things? 10x re-frame or something like that....
@UGNMGFJG3 I looked at re-frisk-remote, I understand correctly that it needs to be added to deps.edn:
re-frisk-remote/re-frisk-remote {:mvn/version "1.6.0"}
Next in core.cljs run re-frisk:
(:require [re-frisk-remote.core :refer [enable-re-frisk-remote!]])
(enable-re-frisk-remote!)
And run re-frisk remote server using leiningen re-frisk plugin.
Into global Leiningen config (~/.lein/profiles.clj) added:
{:user {:plugins [[lein-re-frisk "0.5.10"]]}}
Run:
lein re-frisk
Then run my application. But I don’t see any subscription or database at http://localhost:4567/, just tabs. Need some additional setup?We use re-frisk and it works great. You should also start it. For shadow-cljs command is shadow-cljs run re-frisk-remote.core/start
Or start it programatically from clojure with:
(try
(when-let [start (requiring-resolve 're-frisk-remote.core/start)]
(start))
(catch java.io.FileNotFoundException _e))
You probably already looked into README https://github.com/flexsurfer/re-frisk#react-native-electron-or-web-applications but i leave it here anyway
@U051091NM It turns out that I need to add shadow-cljs to the Krell project to work with re-frisk?
@U049BSVQYSF shadow-cljs is not necessary, i just assumed you have it since it's very common to use it to build clojurescript. But re-frisk could be started without shadow-cljs like this: add to deps.edn:
:aliases {:dev {:extra-deps {re-frisk-remote {:mvn/version "1.6.0"}}}}}
create re_frisk.clj
(ns re-frisk
(:require [re-frisk-remote.core :as re-frisk-remote]))
(re-frisk-remote/start)
run:
clj -R:dev re_frisk.clj
(step 3 from the https://github.com/flexsurfer/re-frisk#react-native-electron-or-web-applications)