This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-28
Channels
- # beginners (67)
- # boot (31)
- # cider (1)
- # cljs-dev (12)
- # cljsjs (1)
- # cljsrn (23)
- # clojure (86)
- # clojure-russia (2)
- # clojure-spec (6)
- # clojure-uk (12)
- # clojurescript (171)
- # core-async (2)
- # core-matrix (1)
- # cursive (3)
- # events (1)
- # lumo (6)
- # off-topic (118)
- # om (51)
- # onyx (16)
- # perun (3)
- # re-frame (14)
- # reagent (19)
- # uncomplicate (5)
- # unrepl (6)
- # untangled (6)
TBH, I have really mixed feelings about lowering the bar to Clojure... On one hand, I really want my friends to try out this awesome thing (spread the love <3) but on the other hand I'm scared... scared of growing to be more like the JS community....
In my day job, I'm currently working on a "Redux" project that completely misses the point. It's got conventional java-like OO baked into it while only a small part of the data follows the flow that we know and love.
so, i have a luminus re-frame project that i’m working with (toy right now).
(defn home-page []
[:div.container
(when-let [docs (rf/subscribe [:docs])]
[:div.row>div.col-sm-12
[notes/editor docs]])])
On the initial page load, docs
doesn’t get loaded into the editor. On any subsequent page change or state change, it does. How to I delay/evaluate/confirm/whatever the keyword is docs
is ready and loaded before loading the notes page? In my init
method the API call to fill in :docs
in the db is there, but I think it’s just happening to fill in after the notes/editor is loaded.It there any additional documentation that expands on scaling large apps? https://github.com/Day8/re-frame/blob/master/docs/Basic-App-Structure.md
(if-let [stuff @(subscrube [:my-stuff])] [:render stuff] [:div "Loading ..."])
works for me @jtth
@gregg I would like a progress-bar without the "x%". i can jimmy one up by copying your component but it would be a useful option
@souenzzo thanks. looks like the issue is in the custom component i’m using, not re-frame!
are there re-frame examples where the app sends GET request to external server for updating state at initialization?
I know about :http-xhrio
but not sure how to send the request at init
Thanks!
oh this seems clear https://github.com/Day8/re-frame/wiki/Bootstrap-An-Application#scales-up
@leontalbot have you looked at https://github.com/Day8/re-frame-async-flow-fx?