This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-16
Channels
- # announcements (2)
- # beginners (50)
- # boot (80)
- # calva (4)
- # cider (58)
- # cljs-dev (11)
- # clojure (140)
- # clojure-brasil (1)
- # clojure-denver (1)
- # clojure-dev (10)
- # clojure-europe (8)
- # clojure-finland (2)
- # clojure-italy (5)
- # clojure-nl (2)
- # clojure-quebec (1)
- # clojure-spec (2)
- # clojure-sweden (4)
- # clojure-uk (94)
- # clojurescript (98)
- # cursive (19)
- # data-science (1)
- # datascript (9)
- # datomic (43)
- # emacs (2)
- # fulcro (29)
- # graphql (41)
- # hoplon (15)
- # jobs (2)
- # kaocha (4)
- # liberator (24)
- # off-topic (9)
- # perun (1)
- # re-frame (11)
- # reagent (17)
- # reitit (8)
- # remote-jobs (2)
- # rum (2)
- # shadow-cljs (24)
- # spacemacs (1)
- # specter (1)
- # tools-deps (21)
Hey everyone. Sorry for the n00b question. I'm not front-end at all and have invested literally no time into understanding the re-frame loop. I just have a Chestnut templated application with re-frame that I'm trying to add a file upload form into. I'm sure I'm doing it wrong since I'm not dispatching any events - the form action is a direct POST - but in any case, my immediate issue is that I have no idea how to acquire and inject a CSRF token control into the form. I haven't had luck finding examples online, and definitely none with a walkthrough as to exactly what needs touching. Halp!
OK. I can find nothing but I'll reach out on Clojureverse.
so you'll want to put that on the page. you'll probably want to parse it so that you can put the token in a global JS var
So there is no order in a effects map. But then why would i obverse the same event order most (95%) of the time? shouldn't it be a even distribution? maybe my experiment if flawed?
> no order in an effects map what do you mean by this? the order in which the effects occur?
@drewverlee the order in which effects are processed is not guaranteed so you should not rely on it. Even if you see a pattern.
@lilactown The issue seems to be the inability of client-side cljs accessing the ring.middleware.anti-forgery
vars.
Going to ask in #reagent. Thanks!