This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-26
Channels
- # announcements (6)
- # beginners (88)
- # calva (12)
- # cider (13)
- # cljs-dev (27)
- # cljsrn (2)
- # clojure (68)
- # clojure-argentina (2)
- # clojure-dev (10)
- # clojure-europe (1)
- # clojure-greece (1)
- # clojure-italy (5)
- # clojure-nl (15)
- # clojure-spec (33)
- # clojure-switzerland (1)
- # clojure-uk (10)
- # clojurescript (121)
- # clojutre (3)
- # code-reviews (2)
- # core-async (1)
- # cursive (10)
- # data-science (1)
- # datomic (21)
- # emacs (10)
- # events (1)
- # fulcro (25)
- # graphql (6)
- # joker (4)
- # kaocha (12)
- # lambdaisland (3)
- # music (2)
- # off-topic (112)
- # om (2)
- # re-frame (25)
- # reagent (29)
- # reitit (93)
- # rewrite-clj (2)
- # shadow-cljs (18)
- # slack-help (4)
- # spacemacs (8)
- # tools-deps (1)
- # vim (2)
- # yada (5)
@scknkkrer great, how do you change the route in re-frame event?
I know basically I can use hyper link with href
set like "#/some-path", but (.pushState js/history nil nil "#/some-path") seems won't trigger the route change
I can suggest something but I’m not an expert on idiomatic usage routing libraries on Re-Frame.
(re-frame.core/reg-fx
:app/set-screen!
(fn [page-url]
(set! js/window.location.href page-url)))
Defining an Effect
for this job, looked nice to me.
Maybe I’m wrong. But, I’m sure there so many of us use re-frame
professionally.
@doglooksgood, oh, your application is isomorphic.
Did anyone encounter to this problem ? http://reactjs.org/docs/error-decoder.html?invariant=227
Can this be of any help? https://github.com/reagent-project/reagent/issues/394
[{:file "app/prod/js/bundle.js"
:provides ["react" "react-dom"],
:requires ["react" "react-dom"]
:global-exports {react React
react-dom ReactDOM}}]
I’m using this vector in my project.clj file. I thought it looks good.
According the link you shared, my configuration has to solve the problem.@doglooksgood I hear some people use https://github.com/kibu-australia/pushy for changing the route with html pushstate - but I'm not sure if it is what you want
I took @jacek.schae’s learn-re-frame course and learned to use bidi
with pushy
for routing. The link here: https://github.com/jacekschae/learn-re-frame-course-files/blob/master/increments/complete/src/app/router.cljs
Looks awesome! Thanks