This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-07
Channels
- # announcements (9)
- # beginners (155)
- # bristol-clojurians (1)
- # calva (49)
- # chlorine-clover (36)
- # cider (10)
- # clara (6)
- # clj-kondo (14)
- # clojars (28)
- # clojure (226)
- # clojure-australia (1)
- # clojure-berlin (12)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-uk (32)
- # clojurescript (9)
- # conjure (21)
- # datascript (3)
- # datomic (43)
- # emacs (3)
- # figwheel-main (16)
- # fulcro (17)
- # graalvm (9)
- # helix (4)
- # lambdaisland (3)
- # malli (13)
- # off-topic (12)
- # pathom (7)
- # re-frame (10)
- # reitit (9)
- # rewrite-clj (2)
- # shadow-cljs (41)
- # spacemacs (6)
- # specter (3)
- # test-check (5)
- # tools-deps (9)
- # tree-sitter (1)
- # vim (15)
- # xtdb (3)
Self-plug - I've made https://github.com/orestis/reseda for this kind of thing. You can have a global store and subscribe to it like reframe. A multimethod and a dispatch-like functionality is trivial to add on top.
@lilactown funny thing. I assumed use-state is like react useState, so I've named [pilha-vis set-pilha-vis]. From now on I'm exchanging the set on the name for update, because the function helix returns has swap! semantic. Exactly what I needed. What I needed was a (update-pilha-vis conj {:foo :bar}) and the function helix returns already gives me that.
@geraldodev fwiw, react's is similar to swap!, but it doesn't support arguments to the function
@orestis Thanks, will look into that.