@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.
@admarrs glad that worked
Just stumbled upon this one: https://github.com/ampersanda/krell-template-runner (video: https://www.youtube.com/watch?v=tjsmjg43jho&feature=youtu.be)
nice
fixed up Krell hot-reloading - was broken when you have many files
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
also should suppress REPL support stuff from being loaded over and over again
https://github.com/vouch-opensource/krell#assets--arbitrary-node-library-requires
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).
Just in time, itβll make it into this weeks Clojure Weekly π
(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)so the question is whats wrong with my rc
function why when I use it it stops reloading