This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-13
Channels
- # beginners (78)
- # boot (27)
- # cider (13)
- # cljs-dev (41)
- # cljsrn (4)
- # clojure (216)
- # clojure-android (1)
- # clojure-conj (6)
- # clojure-greece (1)
- # clojure-italy (11)
- # clojure-russia (127)
- # clojure-spec (63)
- # clojure-uk (34)
- # clojurescript (68)
- # core-async (5)
- # cursive (5)
- # data-science (1)
- # datomic (4)
- # dirac (11)
- # editors (7)
- # events (1)
- # graphql (12)
- # hoplon (39)
- # jobs (1)
- # liberator (3)
- # lumo (101)
- # off-topic (14)
- # om (3)
- # onyx (3)
- # parinfer (14)
- # re-frame (10)
- # reagent (2)
- # remote-jobs (1)
- # ring-swagger (17)
- # sql (21)
- # untangled (38)
- # vim (3)
- # yada (23)
multimethod maybe ?
@dfcarpenter i use https://github.com/binaryage/cljs-oops when doing js interop (as pesterhazy was talking about) to avoid problems with advanced compilation
@joshkh Thanks!
Does anyone have any tips for setting up reagent/re-frame/figwheel with html5Pushstate?
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 😞
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
@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...
The code got all screwed up, here's a gist https://gist.github.com/madstap/6224886af97f71528adadca2295a2183