This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-02
Channels
- # aleph (6)
- # beginners (57)
- # boot (1)
- # cider (27)
- # clara (23)
- # cljs-dev (166)
- # clojure (287)
- # clojure-dev (23)
- # clojure-greece (1)
- # clojure-italy (2)
- # clojure-russia (13)
- # clojure-spec (34)
- # clojure-uk (36)
- # clojurescript (68)
- # core-async (63)
- # core-logic (1)
- # cursive (1)
- # data-science (1)
- # datomic (26)
- # duct (1)
- # emacs (10)
- # figwheel (8)
- # fulcro (2)
- # garden (16)
- # graphql (8)
- # hoplon (20)
- # jobs (2)
- # leiningen (10)
- # off-topic (16)
- # onyx (2)
- # portkey (5)
- # quil (1)
- # re-frame (63)
- # reagent (95)
- # reitit (6)
- # remote-jobs (1)
- # ring (6)
- # rum (1)
- # shadow-cljs (76)
- # spacemacs (26)
- # specter (11)
- # sql (7)
- # unrepl (68)
- # vim (2)
- # yada (2)
All routers impls work with ring-router, but segment-router
reorganizes the tree into a prefix-tree, which by definition can't handle conflicts. You have two options:
1) modify the tree not to contain conflicts (recommended)
2) disable the conflict resolution (e.g. just log the conflicts) and force a r/linear-router
.
Thank you for the reply. For option one , I can’t change the route tree as I am trying to follow this (Conduit API spec) [https://github.com/gothinkster/realworld/tree/master/api#feed-articles], unless there is someway around this in Reitit. So I just went with option 2 of just printing the conflicts and using linear-router. Thank you.
actually, the 2 should work just by disabling the conflicts. reitit will do a :linear-router
for as it's the only one that with that tree.
if the conflict is removed, you would get a mixed-router
proxying to single-static-path-router
& segment-router
.
Thank you for the reply. For option one , I can’t change the route tree as I am trying to follow this (Conduit API spec) [https://github.com/gothinkster/realworld/tree/master/api#feed-articles], unless there is someway around this in Reitit. So I just went with option 2 of just printing the conflicts and using linear-router. Thank you.