This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-31
Channels
- # announcements (3)
- # beginners (139)
- # boot (28)
- # cider (40)
- # cljdoc (1)
- # cljs-dev (30)
- # clojure (61)
- # clojure-conj (1)
- # clojure-dev (113)
- # clojure-germany (4)
- # clojure-italy (29)
- # clojure-nl (3)
- # clojure-russia (2)
- # clojure-spec (38)
- # clojure-uk (53)
- # clojurescript (188)
- # core-async (4)
- # css (2)
- # cursive (7)
- # data-science (5)
- # datomic (14)
- # emacs (1)
- # figwheel-main (192)
- # fulcro (37)
- # jobs-discuss (1)
- # mount (4)
- # off-topic (47)
- # pedestal (7)
- # portkey (14)
- # re-frame (4)
- # reagent (22)
- # reitit (2)
- # remote-jobs (1)
- # ring (6)
- # shadow-cljs (65)
- # spacemacs (7)
- # specter (6)
- # yada (8)
has anyone ran into any issues when using lein ring and mount with swapped states? I'm having difficulty using lein ring's reload features. Whenever a file is changed it runs that respective file's tests during reload, calls mounts swaps, and subsequently removes the original mounted state. Is there a way to avoid this?
@dbernal That sounds like just a factor of how Mount works since it relies on global mutable state. It's why a lot of people prefer something like Component.
Hello. I'm trying to implement file upload with a progress reporter. I am using ring.middleware.multipart-params
https://ring-clojure.github.io/ring/ring.middleware.multipart-params.html
Before the upload actually starts transferring data, I need to do some other stuff, namely give the upload an identifier, save that to a database, and add the identifier to the request so it can be included with the progress events dispatched to clients
I am able to write my own :store
function, where I have access to the java.io.InputStream
, but I do not have access to the request
I am able to write my own :progress-fn
where I have access to the request, but I do not know how to add an upload-id to the request before it gets there
I mean, if I can just add some arbitrary data to the request before it hits :progress-fn
, that should be enough