Fork me on GitHub
#clojurescript
<
2016-10-07
>
rauh09:10:46

Just noticed using map destructing generates a bunch more code than a simple (:x y), why is that? I assume it can handle a few more cases?

val_waeselynck09:10:54

my point was that destructuring is pretty sophisticated so not really surprised 🙂

rickmoynihan09:10:26

What to people use to build sass from leiningen?

rickmoynihan09:10:18

SASS is actually totally optional - most important is using something like PostCSS to add prefixes etc https://github.com/postcss/postcss

val_waeselynck09:10:32

@rickmoynihan I'm don't currently have this requirement, but when I did my approach was to do it outside of leiningen. Of course, depending on your deployment, this may not be an option

crankyadmin10:10:58

Hey,

<AutoSizer>
    {({ height, width }) => (
      <List
        height={height}
        rowCount={list.length}
        rowHeight={20}
        rowRenderer={rowRenderer}
        width={width}
      />
    )}
  </AutoSizer>
How would this look in Clojurescript?

crankyadmin10:10:47

My normal goto is using jsx-to-clojurescript but he returns ERROR: Don't know how to handle node type ObjectPattern

[ui/AutoSizer
 {}
 (fn
  [nil]
  ui/List
  {:height height,
   :row-count (:length list),
   :row-height 20, 
   :row-renderer row-renderer, 
   :width width})]
Which is far enough because I don’t know either 🙂

dzannotti13:10:43

@crankyadmin this should work

[ui/AutoSizer
 {}
 (fn
  [{:keys [width height]} size]
  [ui/List
  {:height height,
   :row-count (:length list),
   :row-height 20, 
   :row-renderer row-renderer, 
   :width width})]]

octahedrion15:10:26

hi there, does anyone know of any lib for dynamic (Google Closure) module loading in re-frame ?

gregnwosu18:10:28

just tried to evaluate some clojurescript in emacs, I got an error saying that i need a clojurescript repl to jack-in to

gregnwosu18:10:41

anyone know how to set one up?

exupero18:10:16

Check in #emacs or #cider

Oliver George21:10:57

@crankyadmin I got it working with (AutoSizer* #js {:children (fn [params] (r/as-element ...))})