This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-22
Channels
- # announcements (2)
- # beginners (42)
- # calva (2)
- # cider (13)
- # clara (2)
- # cljdoc (1)
- # cljs-dev (8)
- # clojure (118)
- # clojure-australia (1)
- # clojure-europe (3)
- # clojure-finland (2)
- # clojure-italy (42)
- # clojure-japan (1)
- # clojure-nl (2)
- # clojure-spec (26)
- # clojure-uk (58)
- # clojurescript (83)
- # cursive (6)
- # data-science (2)
- # datomic (13)
- # devcards (2)
- # duct (9)
- # figwheel-main (4)
- # fulcro (11)
- # graphql (51)
- # jobs (1)
- # juxt (14)
- # kaocha (1)
- # off-topic (24)
- # re-frame (65)
- # reagent (4)
- # reitit (19)
- # remote-jobs (8)
- # shadow-cljs (50)
- # specter (3)
- # speculative (1)
- # vim (5)
- # yada (50)
I'm trying to do a mutation(client) that sends a query to remote
(m/defmutation page.user/full
[{:keys [id]}]
(action [{:keys [state]}] ...)
(remote [_]
(fp/query->ast `[{[:user/by-id ~id] ~(fp/get-query FullUser)}])))
But it's throws split-mutations was asked to split a tx that contained things other than mutations
There is some way to handle that?If I wanted to log all mutations that a user performs, is there something I can tap into to do that?
@njj Yes. you can use the same hooks that any tool (like inspect) uses. See primitives/register-tool
@souenzzo That’s a but too much of a stretch…see returning
. You can indicate that the mutation “returns” a specific graph (mutation join), and the query can be arbitrary from there…but you cannot tack on an arbitrary query.
Fulcro is awesome :grinning_face_with_star_eyes: Normalization finally became my friend and not my nightmare
playing around with form validation and getting an error FORM NOT NORMALIZED: [:form/by-id "sign-in-form"]
when calling form-state/mark-complete!
inside my component. my ident/query look like this + form data:
{:ident [:forms/by-id :form/id]
:initial-state {:form/id :sign-in-form
:sign-in-form/email ""}
:query [:form/id :sign-in-form/email fs/form-config-join]
:form-fields #{:sign-in-form/email}}
the call to mark-complete!
looks like (transact! this `[(fs/mark-complete! {:field :sign-in-form/email})])
any idea what I might be doing wrong here? looks normalized in my app dbsemantic-ui-wrappers/2.0.5-SNAPSHOT is up on clojars - feedback welcome before 2.0.5 release… it updates semantic-ui-react to version 0.84.0 and introduces some optimisations that shadow-cljs projects can take advantage of to reduce build sizes