Fork me on GitHub
#reagent
<
2016-02-15
>
bostonaholic15:02:20

@tmtwd: @peterbak yes, the :key is a unique identifier to help React improve performance

bostonaholic15:02:38

@tmtwd: if you're going to use ^{:key timestamp} you should be sure each timestamp is unique to each item

mihaelkonjevic18:02:03

I've mentioned this a few weeks ago, but in the mean time I've written the docs - Keechma a micro - framework for Reagent http://keechma.com/

mihaelkonjevic18:02:22

if you have any questions, I've opened the #C0MDSV2LW channel, so we don't spam here

sonnyto18:02:41

I have a nested for that generates hiccup, I need to unwrap the nested for for the structure to be correct. I asked this question on the clojurescript google group https://groups.google.com/forum/#!topic/clojurescript/pAxBVLYoBl4

sonnyto18:02:46

anyone know the answer?

sonnyto18:02:08

whats an easy way to unwrap the seq generated by a nested for

sonnyto18:02:32

let me try

sonnyto18:02:16

actually thats not quite what i want it

sonnyto18:02:19

but thanks

sonnyto18:02:30

i need a macro for this

sonnyto18:02:37

to unwrap a seq

sonnyto18:02:33

(1 2 3) -> 1 2 3

mihaelkonjevic18:02:44

@sonnyto as I see it you want to render a table row, with some dynamic columns, right?

sonnyto18:02:44

i just need to unwrap a seq

sonnyto18:02:50

kind of like flatten but not quite

sonnyto18:02:12

can this be accomplish with a function or is a macro needed?

mihaelkonjevic18:02:54

I think something like this should work

sonnyto18:02:20

probably but its hard to read

sonnyto18:02:32

an unwrap macro would do the job and easier to read

gadfly36120:02:33

My two cents .. macros should be used with reluctance and, for the most part, when normal functions won't get the job done. Macros may be easier to read, but hard to debug and update.

ordnungswidrig20:02:52

I like to use into for that as was demonstrated before.

ordnungswidrig20:02:38

The solution in the google group is fine.