Fork me on GitHub
#reagent
<
2017-05-30
>
luposlip07:05:12

@eoliphant have you published your cljs-version of grommet?

osmirnov09:05:28

Hi all, I'm using reagent "0.6.2" with cljs-react-material-ui "0.2.44". I'm trying to import this module https://www.npmjs.com/package/react-ui-tree, but when i calling for him inside create-class, i got Warning: Something is calling a React component directly. Use a factory or JSX instead. and Uncaught TypeError: Cannot read property '__reactAutoBindPairs' of null. Can anyone help? How i can debug this?

pesterhazy09:05:22

@osmirnov can you show the code?

osmirnov09:05:19

@pesterhazy

(def treeui
  (let [tree (aget js/window "Tree")
and inside :reagent-render
[:> tree .....

pesterhazy09:05:00

check in your dev tools, does window.Tree exist?

pesterhazy09:05:37

oh and are you sure you mean def instead of defn?

pesterhazy09:05:53

I think posting the actual snippet might help

osmirnov09:05:14

window.Tree
function (props, context, updater) {
      // This constructor gets overridden by mocks. The argument is used
      // by mocks to assert on what gets mounted.

osmirnov09:05:57

@pesterhazy You are right man, my small mistake...and it rendering now, thx.

not-raspberry13:05:49

Is there any meaningful difference between (aget js/window "Tree") and js/Tree? Except for the externs.

gadfly36114:05:08

Just some extra commentary around aget, partially related

eoliphant17:05:18

hi @luposlip will be doing it in the next couple days

eoliphant17:05:21

ugh that’s annoying @gadfly361 , id’ been using (aget) since it’s more clojury lol

gadfly36117:05:47

Yeah, i use it too 😆

eoliphant17:05:45

well that means an update for my grommet lib lol