This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-30
Channels
- # announcements (3)
- # aws (5)
- # beginners (71)
- # boot (7)
- # calva (74)
- # cider (6)
- # clj-kondo (2)
- # cljs-dev (5)
- # clojars (6)
- # clojure (84)
- # clojure-dev (7)
- # clojure-europe (1)
- # clojure-italy (23)
- # clojure-nl (43)
- # clojure-sanfrancisco (1)
- # clojure-spec (4)
- # clojure-uk (173)
- # clojurebridge (1)
- # clojurescript (14)
- # cursive (44)
- # datomic (9)
- # duct (2)
- # emacs (2)
- # fulcro (4)
- # graalvm (4)
- # graphql (27)
- # hoplon (6)
- # keechma (50)
- # off-topic (3)
- # other-languages (8)
- # pathom (2)
- # pedestal (14)
- # planck (5)
- # re-frame (3)
- # reitit (6)
- # ring (2)
- # robots (2)
- # spacemacs (9)
- # tools-deps (15)
- # vim (44)
How to implement this in Google Closure Library? https://github.com/hoplon/hoplon/blob/4669838feaeae578ef51bd6d6499104c0bab2cc3/src/hoplon/jquery.cljs#L222
I have this code (when (or enabled spec) (or spec name))
and I get a compile warning via figwheel-main that says: Can't take value of macro cljs.core/or
pointing to that line.
Afaik, this is valid clojure(script)
i think there's a fixed bug in figwheel. You can downgrade your clojurescript to a 4xx version i think or bump figwheel-main to [com.bhauman/figwheel-main "0.2.1-SNAPSHOT"]
both sound like undesirable options, I have refactored it to:
(when enabled
(when spec
(or spec name)))
…which is not the equivalent 😄
Hi. Here's the thread on clojureverse about it: https://clojureverse.org/t/form-handling-in-re-frame-in-2018/3140. I am not sure if any of them handles validation though - I usually have it right before submit. There was also nice talk on Clojure/north about how some people do it (they didn't publish any code though - so you would have to take the ideas and implement yours): https://www.youtube.com/watch?v=IekPZpfbdaI&amp=
re-frame @vnctaing could be an option, or a r/atom for internal component state I think
But is there a library built for a re-frame architecture that comes with features like validation, dirty/pristine detection, normalizing, etc… I would have the feeling of recreating the wheel, by creating events, effects for my forms from scratch, no ?
I have the same question too hahaha