This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-19
Channels
- # announcements (7)
- # aws (4)
- # aws-lambda (1)
- # babashka (19)
- # beginners (60)
- # calva (9)
- # chlorine-clover (3)
- # cider (15)
- # clj-kondo (17)
- # clojure (34)
- # clojure-czech (1)
- # clojure-europe (96)
- # clojure-nl (2)
- # clojure-uk (46)
- # clojurescript (20)
- # css (4)
- # cursive (58)
- # data-science (3)
- # datascript (3)
- # datomic (42)
- # depstar (30)
- # dirac (4)
- # emacs (1)
- # etaoin (5)
- # events (1)
- # figwheel-main (30)
- # fulcro (6)
- # helix (9)
- # jobs (1)
- # lumo (3)
- # malli (27)
- # off-topic (15)
- # pathom (11)
- # programming-beginners (6)
- # reitit (6)
- # rewrite-clj (11)
- # shadow-cljs (14)
- # sql (1)
- # tools-deps (18)
- # utah-clojurians (3)
(pc/defmutation submit-space-update [env inputs]
{::pc/sym `app.ui.listing.mutations/submit-space-update}
(log/info "Submit space" inputs))
it just seems a little overkill for me to have to use the full path in pc/sym
to link up to the client side mutations for any server side mutations I have
are you looking for a shorter way to define or to call the mutation?
@U066U8JQJ I’m looking for a way to not have the long full path to the client side mutation
@U010LFZGFEG you can use alias
(just on clj@jvm)
Just like this:
https://github.com/clojure/spec.alpha/blob/master/src/main/clojure/clojure/spec/alpha.clj#L22
And this is a "know issue" from clojure.
Aliasing without require may be solved at language-level in some future.
@U2J4FRT2T so in my case I’d do (alias 'listing 'app.ui.listing.mutations)
the issue that could fix this problem is https://clojure.atlassian.net/plugins/servlet/mobile?originPath=%2Fbrowse%2FCLJ-2123#issue/CLJ-2123