pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
exit2 2020-10-19T20:37:02.129100Z

Is there anyway to avoid full paths to mutations?

exit2 2020-10-19T20:37:04.129400Z

(pc/defmutation submit-space-update [env inputs]
  {::pc/sym `app.ui.listing.mutations/submit-space-update}
  (log/info "Submit space" inputs))

exit2 2020-10-19T20:37:42.130200Z

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

exit2 2020-10-20T11:02:05.132Z

@wilkerlucio Iā€™m looking for a way to not have the long full path to the client side mutation

souenzzo 2020-10-20T12:44:58.132200Z

@njustice 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.

exit2 2020-10-20T12:58:59.132500Z

@souenzzo so in my case Iā€™d do (alias 'listing 'app.ui.listing.mutations)

exit2 2020-10-20T12:59:07.132700Z

then I could do listing/submit-space-update?

šŸ‘ 1
wilkerlucio 2020-10-20T22:15:31.144400Z

the issue that could fix this problem is https://clojure.atlassian.net/plugins/servlet/mobile?originPath=%2Fbrowse%2FCLJ-2123#issue/CLJ-2123

šŸ‘ 1
exit2 2020-10-21T13:55:09.146700Z

I ended up co-located the clj/cljs mutation files so they have the same namespace in the mean time

nivekuil 2020-10-19T20:56:37.130300Z

syntax quote automatically namespace qualifies symbols

wilkerlucio 2020-10-19T21:43:07.131800Z

are you looking for a shorter way to define or to call the mutation?