This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-26
Channels
- # beginners (20)
- # cider (59)
- # cljsrn (6)
- # clojars (7)
- # clojure (91)
- # clojure-boston (1)
- # clojure-dusseldorf (3)
- # clojure-finland (1)
- # clojure-italy (8)
- # clojure-losangeles (1)
- # clojure-nl (16)
- # clojure-spec (25)
- # clojure-uk (113)
- # clojurescript (126)
- # core-async (27)
- # cursive (5)
- # data-science (3)
- # datomic (22)
- # emacs (24)
- # fulcro (30)
- # garden (7)
- # graphql (7)
- # leiningen (3)
- # nginx (1)
- # off-topic (63)
- # onyx (13)
- # portkey (1)
- # re-frame (1)
- # reagent (28)
- # shadow-cljs (92)
- # tools-deps (1)
- # uncomplicate (1)
- # vim (24)
- # yada (8)
The main issue is that my app crashes and shows blank screen in production using shadow-cljs release
.
@troglotit run shadow-cljs release your-build --debug
to make this easier to debug
Has fulcro thought about applying to Clojurists togethers? I see there is hoplon/reagent but I would rather see fulcro/om-next (and I donate to Clojurists togethers)
so TL/DR of my issue is: logger
is null in logging.cljc
in fulcro, and it 's called in primitives.cljc
when it's built via shadow-cljs release
Hi, I just started with Fulcro and like that it seems so very complete! Unfortunately the live update of a page via Figwheel (I am following The Book so far) seems quite slow, 15-30 seconds before changes are shown in the browser. Is that normal and can I speed things up somehow?
@jorg.ramb Should not be that slow. If you plan on using npm javascript libraries might be a idea to also take a look at showdow-cljs. The fulcro-lein-template has both figwheel and shadow-cljs
What I did (just FYI): 1) lein new fulcro app-lein nodemo ALT lein new fulcro app-scljs shadow-cljs nodemo 2) cd app-lein ALT cd app-scljs 3) lein run -m clojure.main script/figwheel.clj ALT npx shadow-cljs watch main cards test 4) Coffee break 5) open page in browser, http://localhost:3449/ ALT http://localhost:8020/ (using Chromium) 6) I see "TODO" 7) I change the file "ui/root.cljc": "TODO" -> "DONE" 8 ) Wait for the web page to reflect that. 15-30 seconds with lein, 2-3 seconds with shadow-cljs Of course I shut down the instances between those two tests. I have performed similar figwheel tests with other frameworks (for example following the om.next tutorial), the updates there (which use figwheel) were subsecond, on the same machines (tested on two different)).
@jorg.ramb what is the [:main] Build completed. (433 files, 2 compiled, 0 warnings, 0.46s)
time for you? was that 2-3secs?
[:main] Compiling ... [:main] Build completed. (433 files, 2 compiled, 0 warnings, 1.16s) [:main] Compiling ... [:main] Build completed. (433 files, 2 compiled, 0 warnings, 0.85s)
My estimates 2-3 seconds is for the browser (guessed, not measured) (shadow-cljs). I had :verbose true for the figwheel updates and I think I have seen recompile times about 27 seconds in the log. But I am happy with the speed of shadow-cljs, will use that until further then.
It fails on https://github.com/fulcrologic/fulcro/blob/98cca33e27e7ac573590d3f9cc0117446eb943b1/src/main/fulcro/ui/form_state.cljc#L513 - and I quite not understand. The conj'ed form-config-path points to the map {:fulcro.ui.form-state/complete? #{:first-name :last-name}
@troglotit It means what it says…you have to make sure your form has ident, so that the form state itself gets normalized into the database. You need to make sure your component’s query has the form config join: http://book.fulcrologic.com/#_defining_the_form_component
@troglotit I released 2.5.3-SNAPSHOT to clojars which should fix your logging issue for release builds
@levitanong 2.5.3-SNAPSHOT also has your type annotation adds
If either of you can confirm that this works well, I can cut it as an official release
@tony.kay Will do! will take it for a spin.