Fork me on GitHub
#re-frame
<
2017-05-28
>
akiroz08:05:37

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

akiroz09:05:54

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.

jtth14:05:50

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.

grierson14:05:30

It there any additional documentation that expands on scaling large apps? https://github.com/Day8/re-frame/blob/master/docs/Basic-App-Structure.md

souenzzo15:05:09

(if-let [stuff @(subscrube [:my-stuff])] [:render stuff] [:div "Loading ..."]) works for me @jtth

sandbags15:05:24

@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

jtth16:05:07

@souenzzo thanks. looks like the issue is in the custom component i’m using, not re-frame!

leontalbot17:05:55

are there re-frame examples where the app sends GET request to external server for updating state at initialization?

leontalbot17:05:36

I know about :http-xhrio but not sure how to send the request at init

souenzzo18:05:33

anyone using google oauth?

gregg23:05:41

@sandbags, you don't need to duplicate the component. If you add this to your app CSS file...

.no-text-progress-bar > .progress-bar {
    color: transparent;
}
then simply adding :class "no-text-progress-bar" will effectively remove the text.