This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-19
Channels
- # adventofcode (52)
- # babashka (47)
- # beginners (13)
- # clojure (36)
- # clojure-belgium (1)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (14)
- # clojurescript (2)
- # clojutre (9)
- # cursive (12)
- # datomic (3)
- # deps-new (3)
- # emacs (12)
- # fulcro (5)
- # guix (1)
- # honeysql (7)
- # introduce-yourself (1)
- # jobs (1)
- # kaocha (8)
- # lsp (5)
- # membrane (5)
- # mount (7)
- # nbb (5)
- # nrepl (2)
- # off-topic (60)
- # polylith (9)
- # reclojure (2)
- # reitit (8)
- # ring (17)
- # shadow-cljs (4)
- # spacemacs (31)
- # sql (7)
- # timbre (3)
- # xtdb (15)
does anyone have a working reitit + interceptors + ring-cookie + ring-session example, please? 😄
pretty simple setup here: https://github.com/matterandvoid-space/todomvc-fulcro-subscriptions/blob/766d27be316c3f2ab6a23bd8db30932ec0601a4f/src/main/space/matterandvoid/todomvc/server/system.clj#L115 but that is using middleware This is using pedestal and muuntaja interceptors + ring session https://github.com/dvingo/dv.fulcro-template/blob/faa148ac1d445253a9117fdbed0b7504b4bf6264/resources/clj/new/dv.fulcro_template/src/main/app/server/service.clj#L192
question: can i use middlewares and interceptors at the same time?
bump please @U055NJ5CC 🙂
Hmm, you could, but I don't think you should, and not supported by default. If you really need this - use interceptors as the chaining engine and wrap all mw into interceptors: inspect the chain (there is a hook to do that in reitit) and use some generic converter. Or wrap each mw manually.
doesn't work the other way around, e.g. can't convert interceptors into mw, as they can manipulate the queue - mw chains are always static (and because of that, faster)
ok thank you - this was more of a 'robert wants to understand the system' question, than an actual intent 😄