This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-10
Channels
- # aleph (4)
- # announcements (27)
- # aws (12)
- # aws-lambda (1)
- # beginners (207)
- # boot (4)
- # calva (8)
- # cider (9)
- # clj-kondo (9)
- # cljs-dev (27)
- # cljsrn (6)
- # clojure (104)
- # clojure-android (3)
- # clojure-dev (9)
- # clojure-finland (2)
- # clojure-italy (18)
- # clojure-spec (8)
- # clojure-uk (100)
- # clojurescript (43)
- # clojutre (1)
- # core-async (49)
- # cursive (18)
- # data-science (3)
- # duct (24)
- # events (2)
- # fulcro (27)
- # immutant (1)
- # off-topic (32)
- # om (2)
- # onyx (2)
- # pathom (14)
- # pedestal (2)
- # planck (3)
- # re-frame (38)
- # reagent (7)
- # reitit (10)
- # rewrite-clj (7)
- # ring-swagger (3)
- # shadow-cljs (32)
- # spacemacs (63)
- # test-check (16)
- # tools-deps (5)
- # vim (21)
explicit parameter syntax coming up: https://github.com/metosin/reitit/pull/290
any recommendations/examples on redirecting when a user tries to visit an invalid route, using reitit.frontend
?
Hi @U9MJTSS9K! In frontend-links
example you can achieve this simply doing this:
(if @current-match
(let [view (:view (:data @current-match))]
[view @current-match])
[Redirect {:to ::frontpage}])
Hope this helps you.I’ve tried
(if current-route [app-stuff] [Redirect])
but since I initialize current-route to nil, I get redirected even for valid routeshttps://github.com/metosin/reitit/blob/master/examples/frontend-links/src/frontend/core.cljs
Hey guys, are there any example CRUD type apps that use reitit I can read? Looking for examples
not exactly plain crud but reitit https://github.com/valerauko/kitsune