Fork me on GitHub
#re-frame
<
2017-04-10
>
eveko10:04:49

How to do I access members of a map? I managed to transform the json into edn, how do I then iterate through the registered map...?

danielcompton11:04:47

What are you trying to do?

danielcompton11:04:15

You can call (get mymap :mykey) to get the value for a key

eveko11:04:23

my snippet above has a subscription to :data in the data is a collection of users, for now I want to render a div with each users username

eveko11:04:57

well.... if my ajax did things correctly, I just looked into my appdb, seems a bit janky

andrewboltachev13:04:36

Hello. For https://github.com/Day8/re-frame-http-fx is there possibility to cancel the AJAX request? Say, I'm clicking the links on the page and back/forward buttons very fast and it leads to series of concurrent AJAX requests

andrewboltachev13:04:04

each of that would have it's :good-http-result

andrewboltachev14:04:45

@andre thanks. really interesting topic. I think we should make browser history "controlled" the same way React.js made input components controlled

andrewboltachev14:04:22

(however, the browser history issue is different)

jfntn19:04:04

We’re looking at https://github.com/kristianmandrup/slush-reframe but it looks like it’ll take some tweaks to generate what we want. Curious if anyone here can vouch for or against it?

danielcompton23:04:56

@jfntn I haven't seen it until now. It seems like it generates quite a lot of files for a single domain model, certainly more than we use even for large panels. Also, we tend to model our apps by screen rather than by domain model. I've never used it so can't give any more of a judgement

jfntn23:04:24

@danielcompton yes the default template is rather strange. It seems very configurable though it’s all in js and would probably take a fair amount of tweaking to output what we want