Fork me on GitHub
#re-frame
<
2017-04-28
>
gamecubate14:04:29

@benny Shouldn’t you deref for destructuring to work?

(let [{:keys [id name image]} @(subscribe [:person person-id])]
  (println name))

benny14:04:01

Sweet! Didn't think about doing that. Thanks @gamecubate

gamecubate14:04:10

Still trying to wrap my head around re-frame. Lots to grok with this great framework.

gamecubate14:04:25

Had the same problem 24 hours ago.

qqq15:04:58

I'm trying to design a simple chat window (like the main slack window) in re-com

qqq15:04:09

so for the bottom part, I can juse use an input-text

qqq15:04:22

however, what should I use for displaying existing messages ?

gamecubate15:04:29

@qqq That looks like more of a reagent question (although indeed a Day8 driven project).

qqq15:04:00

it's more of a re-com question

richiardiandrea15:04:53

@qqq I don't think there is a premade component for that, but that is basically a list of messages so the next question is how to display a message?

richiardiandrea15:04:21

Re-com does not provide "aggregated" components but gives you the basics

richiardiandrea15:04:19

Also, it is basically bootstrap + material design