Fork me on GitHub
#re-frame
<
2016-10-22
>
akiroz04:10:48

Hopefully mine in less than a year... I managed to sneak in cljs and re-frame in a small project I'm working on right now 😛 and I'm still trying to sell everyone on this by giving presentations on the nice bits.

manishkumarmdb06:10:01

@superstructor when i use bootstrap notify function in :http-xhrio then it's not rendering current page, while i use cljs-ajax instead of :http-xhrio then it working. can you explain, why ?

sllyq09:10:18

Can someone link me to some examples of how to do http requests in re-frame

sllyq09:10:31

I can't find a full example in docs 😕

curlyfry11:10:17

@sllyq I took a less general approach than http-fx in my project: https://github.com/Dexterminator/imperimetric/blob/master/src/cljs/imperimetric/api.cljs https://github.com/Dexterminator/imperimetric/blob/master/src/cljs/imperimetric/handlers.cljs I wrote my own fx for my api call, look for reg-fx i the handlers file :)

sllyq11:10:54

Thanks for answers

sllyq11:10:37

I also have a problem where my re-frame db gets updated but the component that has subscribed to it doesn't get updated

sllyq11:10:44

Anyone has an idea why that could be?

mikethompson11:10:14

You might have to create a minimal gist

sllyq11:10:29

Just thought maybe there is some common case why this happens, because other handlers are working and I checked with the debug interceptor that the db does actually change 😮. Anyways I'll post the minimal gist later if I can't find the reason

curlyfry13:10:29

@sllyq +1 for minimal gist, but one of the most common mistakes is forgetting the deref @ before the subscribed value in your hiccup

rui.yang14:10:38

what’s the usual prod app.js here? mine is 551K. isn’t it a bit big?

rui.yang14:10:49

I mean using re-frame and reagent

akiroz15:10:44

Is there currently a centralized place where we could find a list of re-frame (co)fx handlers & interceptors?

juliobarros16:10:28

Hi, after being away from Reagent (and Re-Frame) for a while, I'm working on a new UI and would love an easy way to create modals. What's the latest best way to do this? (with Bootstrap 4 css?) I know a little about re-com but am hesitant to bring it in for this simple case. Thanks.