This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-01
Channels
- # announcements (3)
- # babashka (17)
- # beginners (163)
- # bristol-clojurians (1)
- # calva (18)
- # chlorine-clover (17)
- # clj-kondo (13)
- # cljs-dev (50)
- # cljsjs (3)
- # cljsrn (13)
- # clojure (218)
- # clojure-dev (5)
- # clojure-europe (9)
- # clojure-italy (10)
- # clojure-nl (8)
- # clojure-uk (107)
- # clojurescript (25)
- # conjure (163)
- # cursive (63)
- # data-science (9)
- # datomic (38)
- # docker (1)
- # figwheel (34)
- # figwheel-main (3)
- # fulcro (15)
- # graalvm (1)
- # helix (12)
- # jobs (3)
- # juxt (5)
- # kaocha (3)
- # lein-figwheel (2)
- # leiningen (6)
- # luminus (2)
- # malli (1)
- # meander (12)
- # nrepl (4)
- # rdf (2)
- # re-frame (2)
- # reagent (7)
- # reitit (5)
- # remote-jobs (2)
- # rum (1)
- # shadow-cljs (65)
- # spacemacs (27)
- # tools-deps (18)
- # vim (19)
- # xtdb (2)
@dnolen I was in the same place yesterday - almost at the "questioning if I was adopted" stage as described here https://cljdoc.org/d/reagent/reagent/1.0.0-alpha1/doc/tutorials/using-square-brackets-instead-of-parentheses- that use of [my-fn] is the key. Thanks.
Just stumbled upon this one: https://github.com/ampersanda/krell-template-runner (video: https://www.youtube.com/watch?v=tjsmjg43jho&feature=youtu.be)
I have a large-ish RN project now working with Krell instead of re-natal, loads pretty quick
I'll probably work on device side caching of CLJS files next - this should allow very fast connect and course, immediately seeing the UI
adding some clarifying stuff about asset / lib requires. For assets since this a compiler pass that means you can write macros for assets if you like (load a directory etc).
(defn rc [component]
{:screen (r/reactify-component (rn/reload-comp component))
:navigationOptions #js {:headerShown false}})
(def routes-a
{:home (rc home/home-screen)
:demo (rc demo/demo-screen)})
(defn reactify [x] (r/reactify-component x))
(def routes-b
{:home {:screen (reactify (rn/reload-comp home/home-screen)) :headerShown false}
:notifications {:screen (reactify notification/notifications-screen)}})
I use a reloader rn/reload-comp
when I use routes-a
it doesn't reload but routes-b
is reloading (this is the reloader -> https://github.com/flexsurfer/rn-shadow-steroid)