This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-29
Channels
- # announcements (44)
- # architecture (12)
- # babashka (45)
- # beginners (56)
- # calva (16)
- # cider (34)
- # clj-kondo (6)
- # clojure (47)
- # clojure-austin (2)
- # clojure-brasil (3)
- # clojure-europe (39)
- # clojure-germany (2)
- # clojure-nl (1)
- # clojure-norway (39)
- # clojurescript (7)
- # cursive (1)
- # datahike (2)
- # datomic (28)
- # emacs (8)
- # gratitude (3)
- # humbleui (4)
- # hyperfiddle (45)
- # kaocha (1)
- # lsp (94)
- # nbb (2)
- # off-topic (29)
- # practicalli (8)
- # releases (2)
- # shadow-cljs (6)
- # squint (17)
- # tools-deps (12)
- # vim (11)
Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.374 • Fix: https://github.com/BetterThanTomorrow/calva/issues/2236 Thanks for testing and reporting, @alexander.minolta! 🙏:skin-tone-3: ❤️
It doesn't really bother me at all, but I do see duplicate documentation when I hover over any symbol from clojure.core
or another library. For instance reg-event-db
from re-frame
shows me
re-frame.core/reg-event-db
[id handler]
[id interceptors handler]
Register the given event handler (function) for the given id. Optionally, provide an interceptors chain:
id is typically a namespaced keyword (but can be anything)
handler is a function: (db event) -> db
interceptors is a collection of interceptors. Will be flattened and nils removed.
Example Usage:
#!clj
(reg-event-db
:token
(fn [db event]
(assoc db :some-key (get event 2))) ;; return updated db
Or perhaps:
#!clj
(reg-event-db
:namespaced/id ;; <-- namespaced keywords are often used
[one two three] ;; <-- a seq of interceptors
(fn [db [_ arg1 arg2]] ;; <-- event vector is destructured
(-> db
(dissoc arg1)
(update :key + arg2)))) ;; return updated db
/home/bhlieberman/.m2/repository/re-frame/re-frame/1.3.0/re-frame-1.3.0.jar:re_frame/core.cljc
re-frame.core/reg-event-db
[id handler]
[id interceptors handler]
Register the given event handler (function) for the given id. Optionally, provide an interceptors chain:
- `id` is typically a namespaced keyword (but can be anything)
- `handler` is a function: (db event) -> db
- `interceptors` is a collection of interceptors. Will be flattened and nils removed.
Example Usage:
#!clj
(reg-event-db
:token
(fn [db event]
(assoc db :some-key (get event 2))) ;; return updated db
Or perhaps:
#!clj
(reg-event-db
:namespaced/id ;; <-- namespaced keywords are often used
[one two three] ;; <-- a seq of interceptors
(fn [db [_ arg1 arg2]] ;; <-- event vector is destructured
(-> db
(dissoc arg1)
(update :key + arg2)))) ;; return updated db
Didn't see an open issue on perusal of the Github so figured I'd point this out.You are welcome to file an issue about it. I’ve tried to fix it, but it is a bit involved so I need some larger chunk of time to focus on it.
No, here is paredit.ts: https://github.com/BetterThanTomorrow/calva/blob/published/src/cursor-doc/paredit.ts
Sorry I mean this part, rewrite-clj with paredit file https://github.com/BetterThanTomorrow/calva/tree/published/src/cljs-lib/src/pez_rewrite_clj
I was about to employ rewrite-clj for something and thought I'd check what calva does
But I don't know whether it's there because of history of because there's some very meaningful differences without a lot of of source reading
The reason we have a copy of rewrite-cljs in Calva is because we have a copy of cljfmt that needs this version of rewrite-cljs. So I have hacked the names a bit to avoid dependency clashes with the Clojar version of cljfmt that we also use. paredit.cljs just happens to be there and is not used.