This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-10
Channels
- # announcements (3)
- # architecture (54)
- # babashka (11)
- # beginners (12)
- # calva (5)
- # clj-on-windows (1)
- # cljdoc (2)
- # cljs-dev (1)
- # cljsrn (6)
- # clojure (130)
- # clojure-europe (8)
- # clojurescript (21)
- # conjure (23)
- # core-async (4)
- # datomic (7)
- # depstar (77)
- # events (1)
- # fulcro (27)
- # lsp (88)
- # malli (5)
- # meander (1)
- # off-topic (4)
- # pathom (43)
- # polylith (39)
- # re-frame (9)
- # shadow-cljs (14)
- # timbre (3)
- # tools-deps (53)
Hello friends, while working on implementing atoms for Clojuredart I’ve noticed 2 differences between the clj/cljs version.
- 1/ the atom
function does not check if meta
is a “valid” meta (meaning implements IPersistentMap
. So in cljs, (atom 1 :meta 2)
works
- 2/ the validator
function is called at creation in clj (with the passed state) but not in cljs
If you feel it would be nice to correct it I would be happy to submit a patch.
Thanks a lot
👍 13
😱 2