Fork me on GitHub
#reagent
<
2017-08-17
>
pwrflx16:08:06

hi! anyone using reagent and spec together? Eg how do you spec functions that are expecting ratoms containing data of a certain shape?

acuervo17:08:27

Hi! I’m wondering if anyone could explain to me how I might able to use non-standard HTML attributes in Reagent -- for example, if I have [:div {my-thing "foo: bar;"}] Reagent strips that to <div mything="foo: bar;></div> with no dash 😕

souenzzo17:08:47

I had this problem too. Solved the problem by changing the name But sure, i think that it's a bug (or at least, undocumented)

nenadalm18:08:36

@U27QC0YPN I've tried your example but props didn't appear in the html. I just received the warning in developer console sending me to the link. I also tried {:data-my-thing} which worked.

acuervo01:08:29

Hmmm, okay, thanks for the info, that’s unfortunate, will look for another way then

profgra15:08:02

@U27QC0YPN, but why no colon here? Why not [:div {:my-thing "foo: bar;"}]?

scknkkrer19:08:45

Guys, any nested value in app-db isn’t writeable ?

scknkkrer19:08:06

(app-db {:a {:b 1}})

scknkkrer19:08:29

(subscribe [:a :b]) ;; (-> db :a :b)

scknkkrer19:08:49

Can not I write this returned value ?

captainlexington19:08:09

@scknkkrer I think you want the re-frame channel?

captainlexington19:08:38

Although maybe not. It's been a while since I used vanilla reagent