cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
metehan 2020-05-02T00:34:21.429400Z

I have problem with krell too 🙂

dnolen 2020-05-03T15:35:06.447Z

I don't have a windows machine handy to help you with this particular problem - but this sin't a Krell issue anyway - ClojureScript

metehan 2020-05-04T23:37:32.453200Z

Thank you, I'll try to find out.

metehan 2020-05-02T00:35:43.429600Z

I follow the tutorial but when write

clj -m cljs.main --install-deps
on windows I get this error
Exception in thread "main" <http://java.io|java.io>.FileNotFoundException: Could not locate ____init.class or __.clj on classpath:
        at clojure.lang.RT.load(RT.java:443)
        at clojure.lang.RT.load(RT.java:411)
        at clojure.core$load$fn__5066.invoke(core.clj:5641)
        at clojure.core$load.doInvoke(core.clj:5640)
        at clojure.core$load_one.invoke(core.clj:5446)
        at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
        at clojure.core$load_lib.doInvoke(core.clj:5485)
        at clojure.lang.RestFn.applyTo(RestFn.java:142)
        at clojure.core$apply.invoke(core.clj:626)
        at clojure.core$load_libs.doInvoke(core.clj:5524)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.core$apply.invoke(core.clj:626)
        at clojure.core$require.doInvoke(core.clj:5607)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at clojure.main$main_opt.invoke(main.clj:315)
        at clojure.main$main.doInvoke(main.clj:420)
        at clojure.lang.RestFn.invoke(RestFn.java:482)
        at clojure.lang.Var.invoke(Var.java:401)
        at clojure.lang.AFn.applyToHelper(AFn.java:171)
        at clojure.lang.Var.applyTo(Var.java:700)
        at clojure.main.main(main.java:37)

Oliver George 2020-05-02T12:26:22.432600Z

I'm trying to port a re-natal app to Krell. I can't work out how to ensure that I see the UI update when I updated a view and the namespace reloads. Using the approach from the Krell Reagent tutorial I'm not getting a UI refresh unless I modify the awesome-project.core ns.

Oliver George 2020-05-02T12:28:57.434700Z

I've tried a few variants on porting the re-natal onreload approach of counter r/atom plus clearing re-frame's subscription cache. No joy. Also tried calling force-reload! manually since the -main isn't a great location for the call.

(def cnt (r/atom 0))
(defn reloader [] @cnt [navigation-screen/container])

(defn force-reload! []
  (re-frame/clear-subscription-cache!)
  (swap! cnt inc))

(defn ^:export -main [&amp; args]
  (re-frame/dispatch-sync [:app/bootstrap])
  ;(force-reload!)
  (r/as-element [reloader]))

Oliver George 2020-05-02T12:29:37.435500Z

But if I modify that file the krell reload process does give the result i'm looking for. Just not sure how.

Oliver George 2020-05-02T12:42:06.437800Z

Related... currently the Krell REPL doesn't signal to the app whether -main is being called to start the app or as part of a reload. That distinction would be handy to avoid "bootstrapping" happening multiple times. It's fixable with additional app state but by rights is dev only concern.

Oliver George 2020-05-02T13:20:37.438500Z

Okay, a simple repro isn't immediately backing me up. It might be something more complicated than I thought. I’ll try again tomorrow

👍 1