This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-05
Channels
- # announcements (1)
- # babashka (7)
- # beginners (60)
- # biff (7)
- # cider (2)
- # clj-kondo (1)
- # clojure (15)
- # clojure-france (1)
- # clojure-norway (1)
- # clojurescript (7)
- # datascript (7)
- # emacs (4)
- # etaoin (1)
- # honeysql (7)
- # interceptors (8)
- # introduce-yourself (3)
- # kaocha (1)
- # off-topic (16)
- # pathom (2)
- # reagent (15)
- # reitit (11)
- # releases (1)
- # slack-help (3)
- # vim (36)
I noticed that with "0.5.18" the router options :inject-router? and :inject-match? are ignored. Even if I pass in false
the router and match objects are injected in the request. Am I doing something wrong?
(reitit.ring/ring-handler
(reitit.ring/router
[,,,]
{:data {,,,}})
{:inject-match? false
:inject-router? false})
Also I can't seem to get the muuntaja ring middleware to work. It doesn't encode the response when set up according to the docs...
Sorry if this has been asked, but I am seeing this annoying warning with monger. But only when I am using it with reitit, does anyone have a suggestion on how to address it (other than ignoring it)?
WARNING: random-uuid already refers to: #'clojure.core/random-uuid in namespace: monger.util, being replaced by: #'monger.util/random-uuid
Its arbitrary that this occurs together with reitit. Monger apparatus adds random-uuid
which is, since a newer clojure version, now part of the clojure.core namespace. To fix it the monger library needs to be patched. Either to remove random-uuid for newer clojure versions, or put random-uuid
in an :exclude
*apparently
Argh. I tried :exclude
and does not seem to work which is annoying. Unless, I am doing it wrong 😛
@U0FT7SRLP sorry, can you provide an example (or insight) into how exclude? Should this be doing in the project.clj
or is this done in the .clj
files that reference monger
?
ahh yes, I see that monger developers are noticing the issue https://github.com/michaelklishin/monger/pull/216
In the pr is a nice example of :exclude https://github.com/jacobemcken/monger/commit/69bb24b3d9c69b1d0cfd2f635334c4f941b69c47
They merged it in master so maybe you can already use it in your project with deps.edn