This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-12
Channels
- # announcements (1)
- # babashka (79)
- # beginners (165)
- # calva (29)
- # cider (20)
- # clara (3)
- # cljdoc (1)
- # cljs-dev (52)
- # clojure (42)
- # clojure-chicago (5)
- # clojure-europe (48)
- # clojure-germany (1)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (19)
- # clojurescript (50)
- # clojureverse-ops (5)
- # conjure (8)
- # datomic (16)
- # depstar (2)
- # events (1)
- # figwheel-main (23)
- # fulcro (26)
- # girouette (41)
- # graalvm (9)
- # heroku (3)
- # honeysql (10)
- # jackdaw (20)
- # lambdaisland (6)
- # lein-figwheel (1)
- # lsp (34)
- # malli (7)
- # meander (3)
- # music (1)
- # off-topic (14)
- # polylith (7)
- # re-frame (14)
- # reitit (8)
- # reveal (15)
- # ring (3)
- # schema (1)
- # sci (15)
- # shadow-cljs (42)
- # spacemacs (1)
- # startup-in-a-month (12)
- # tools-deps (59)
- # vim (1)
- # xtdb (27)
I'm having trouble understand how I can create a "default" route in reitit, when none of my other routes match. I'm trying to switch to this from secretary, but there's a lot I don't understand at this point.
I don’t think there is an easy way in frontend routing for that. I think the whole frontend routing would need some extra ❤️ , could be simpler and smaller. I do not have time for that, but maybe others?
It seems like a common use case. It's nice to be able to ensure exhaustive handling in anything that's trying to enumerate all of the different types of URLs in an application.
Hmh, I was quite sure there is default-handler for frontend, but it is indeed Ring only.
I think it should still return a match, with nil
name or something like that. I think that's how I'm checking for not-found view usually.
For retrigger, when using in a app with re-frame, the on-navigate callback only dispatches an event. If I need to retrigger the routing logic, I'll just dispatch that event with the current match from app-db. Usually that handles the parts that I want to trigger anyway.