This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-12
Channels
- # babashka (37)
- # beginners (27)
- # biff (1)
- # calva (18)
- # cider (45)
- # clj-on-windows (5)
- # cljsrn (1)
- # clojure (90)
- # clojure-art (3)
- # clojure-uk (1)
- # clojurescript (7)
- # core-logic (4)
- # datomic (4)
- # events (2)
- # fulcro (3)
- # hyperfiddle (23)
- # leiningen (66)
- # malli (1)
- # meander (7)
- # nrepl (1)
- # off-topic (9)
- # pathom (1)
- # re-frame (15)
- # reitit (19)
- # remote-jobs (1)
- # shadow-cljs (103)
Hi, I think I'm missing something from the load!
guide. Here is my code for the remote:
{:remotes {:promised
{:transmit! (fn [_remote {::txn/keys [result-handler ast]}]
(.log js/console ast)
(result-handler {:connect/name "Quentin"
:connect/id :quentin}))}}}
And here is my call:
(load! app/app [:connect/id :quentin] Connect {:remote :promised})
I'm not getting any new [:connect/id :quentin]
indent in the fulcro db.✅ 1
got it:
since you can define what happens to this data via default-result-action or directly in mutations it is really wide open to your own invention. If you follow the standard result format, then you can expect the default load and mutation return merging to work, and error/ok processing to function as well. If you deviate from the standard format then those functions will not work without additional intervention on your part.
so problem solved?