Fork me on GitHub
#cljsrn
<
2020-05-01
>
Al M09:05:59

@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.

dnolen12:05:01

@admarrs glad that worked

dnolen18:05:48

fixed up Krell hot-reloading - was broken when you have many files

dnolen18:05:13

I have a large-ish RN project now working with Krell instead of re-natal, loads pretty quick

dnolen18:05:02

I'll probably work on device side caching of CLJS files next - this should allow very fast connect and course, immediately seeing the UI

dnolen18:05:26

also should suppress REPL support stuff from being loaded over and over again

dnolen19:05:07

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).

dotemacs19:05:21

Just in time, it’ll make it into this weeks Clojure Weekly 🙂

metehan23:05:51

(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)

metehan23:05:56

so the question is whats wrong with my rc function why when I use it it stops reloading