Fork me on GitHub
#re-frame
<
2017-05-23
>
cmal10:05:55

As for the :http-xhrio reg-event-fx, can I use :on-success [:good-http-res somedata] rather than :on-success [:good-http-res]? If I can, how should I change the params of :good-http-res reg-event-fx? The params currently are [db [_ result]], should I use [db [_ data result]?

cmal10:05:23

====> Answer myself: I can. It works just as I described.

len12:05:33

Is there a simple way to register a global interceptor or do I need to do it with each handler ?

piotr-yuxuan13:05:15

Hey, sorry I haven’t time to make it more complete, but what do you think about this attempt to fetch external data with re-frame? https://gist.github.com/piotr-yuxuan/f03dba032e53252d4cc9344ee2044152

akiroz16:05:51

@len you can define your own reg-event-__ that wraps around the re-frame one. that's what I did with my code base.

len16:05:03

Thanks @akiroz we converged on that

danielcompton21:05:21

I've been holding this under my hat for a while, but re-frame has had a team sponsored by Rails Girls Summer of Code

danielcompton21:05:48

They'll probably be working on the re-frame developer experience to make it even better

jsa-aerial22:05:45

Anyone know of an animated accordion widget/component that plays with re-com?

mikethompson23:05:32

No, but you might want to use react-flip-move if you build it. There's a link somewhere ...

mikethompson23:05:27

@jsa-aerial ^^^ not a ready-made solution unfortunately, you'll have to roll your own,

mikethompson23:05:10

But remember the various "tabs" components in re-com are about 15 lines of code

mikethompson23:05:41

It isn't too hard, once you solve the animations issue (hence my link above)

jsa-aerial23:05:56

@mikethompson Thanks for the info. I suppose others would find it useful/desirable if built. This isn't the sort of thing in my wheel house, but I will take a look at it...