Fork me on GitHub
#re-frame
<
2017-05-18
>
borjarus08:05:22

@nrako @owen it's works . Maybe I'm not use reageant.core/props but reagen.core/argv. Thank you guys for give me some light on how reagent's lifecycycle working. I've got one more question. I read that props function need a map. But what type of map it need ? Have you any example of working project ?

negaduck13:05:51

hello. I have (re-frame/reg-event-db ... [... (re-frame/after go-home)] ...) and (defn go-home [_] (println "hello") (secretary/dispatch! "/"))). The function gets called, prints hello, [:set-active-panel home-panel] gets sent, but the url in address bar doesn’t get changed. Shouldn’t secretary/dispatch! do this? How to fix this?

negaduck13:05:41

btw, I use pushy for urls without octothorp

cmal13:05:07

Hi, are there any examples to use re-frame-http-fx to make a http request with Content-Type of application:x-www-form-urlencoded?

owen14:05:50

@borjarus not sure I understand? not just a Map map? {...}?

owen14:05:13

possibly it requires (clj->js {}) if its being used by js?

owen17:05:33

@negaduck are you calling something like (.setToken history token) somewhere?

owen17:05:47

I needed that to get secretary to actually update the browser url

negaduck17:05:26

@owen, it seems like pushy does this for me when I do pushy/set-token!

owen17:05:36

that code likes fine

negaduck17:05:04

I mean, I found out I have to do this

owen17:05:32

oh you mean you added pushy/set-token! after posting here?

owen17:05:50

pushy allows you to skip /#/route?

negaduck17:05:22

pushy is for html5history, so it works for routes without #

owen17:05:30

ah :thumbsup:

lumpy22:05:42

anyone know why re-com puts a default width of 250px on input boxes, shouldn’t it just be auto and let me style with css?

lumpy22:05:03

:width “none” does what I want, seems like that should be the default