Fork me on GitHub
#re-frame
<
2017-06-13
>
jvuillermet12:06:05

multimethod maybe ?

joshkh14:06:00

@dfcarpenter i use https://github.com/binaryage/cljs-oops when doing js interop (as pesterhazy was talking about) to avoid problems with advanced compilation

dfcarpenter19:06:51

Does anyone have any tips for setting up reagent/re-frame/figwheel with html5Pushstate?

souenzzo19:06:22

dfcarpenter: - I can't make figwheel send index.html with wildcard - back browser action dont work as expected - can't find a good blogpost about it. Trying to write one, but I'm not a good writer 😞

dfcarpenter19:06:27

Yeah, I found some ones that help me setup bidi/pushy but they use compojure to server ANY * -> index.html but I lose the figwheel workflow

souenzzo21:06:12

In production, I'm using it with pedestal. But for dev, can't find any solution

madstap01:06:35

@dfcarpenter Huh, I've got an SPA where i use pushy in cljs, `(defn routing! [] (pushy/start! (pushy/pushy #(rf/dispatch [:routes/set-page %]) routes/match)))` and `(defroutes routes (ANY "*" [] (resource-response "index.html" {:root "public"})) (resources "/"))` on the server (which is just for dev) and I don't have any problems with figwheel. The back button works, I can go to localhost/foo and get the right page, etc...

souenzzo04:06:28

Hum... Nice. Figwheel just build the stuff, then you serve it by clojupture... I will try here.