This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-14
Channels
- # aleph (1)
- # aws (3)
- # beginners (75)
- # boot (1)
- # bristol-clojurians (2)
- # clj-kondo (18)
- # cljs-dev (5)
- # cljsrn (10)
- # clojure (62)
- # clojure-dev (15)
- # clojure-europe (3)
- # clojure-india (2)
- # clojure-italy (9)
- # clojure-madison (1)
- # clojure-nl (9)
- # clojure-norway (9)
- # clojure-spec (11)
- # clojure-uk (206)
- # clojurescript (30)
- # copenhagen-clojurians (1)
- # data-science (1)
- # datascript (2)
- # datomic (27)
- # emacs (1)
- # events (1)
- # fulcro (12)
- # gorilla (1)
- # jobs (2)
- # kaocha (2)
- # leiningen (4)
- # lumo (7)
- # malli (1)
- # off-topic (2)
- # pathom (14)
- # pedestal (5)
- # quil (3)
- # re-frame (8)
- # reitit (3)
- # remote-jobs (16)
- # ring-swagger (1)
- # shadow-cljs (70)
- # tools-deps (7)
- # vim (5)
- # vrac (1)
The SUI wrappers are super simple wrappers, and I don’t really maintain them or debug them
Fair enough! Thanks for all the work you do.
feel free to send a PR if you’re willing to test the change extensively…I can tell you that making that work is very low priority for me, as I never use the wrapped form controls from that lib, but instead just create DOM elements with the correct classes.
That is totally fair; my comment above wasn't intended to be negative in the slightest. Apologies if it came across that way. I completely understand that you do a lot and need to prioritize. I've now identified the specific cause of the issue, which results in the inability to remove keys from the props of any fulcro dom wrapped input. I will think about potential solutions. Not sure what kind of testing you'd like to see for a fix, but I'm happy to cross that bridge when we get to it.
I don’t use the sui wrappers for forms, since they are just adding simple classes to simple dom elements.
I am making my way through Fulcro book while writing my little app. I'm at the point of loading data from remote: http://book.fulcrologic.com/#_parsing_queries
I have multiple components nested one on top of another, so doing things way shown here requires a lot of code duplication.
So in A resolver, I will have to assoc each B from id
into data, and for each of those B's I'd also have to expand A
according to id
inside of it.
Isn't this possible to, taking documentation as an example, use person-resolver
to resolve each person in list-resolver
?
I am not sure if I understand your problem.. Is this a fulcro or a pathom question? Anyway. I think this is what you are looking for?
(defresolver list-resolver [_ _]
{::pc/output [{:all-persons [:person/id]}
{:all-persons [{:person/id 1} {:person/id 2} {:person/id 3}]})
(defresolver person-resolver [_ {id :person/id}]
{::pc/input #{:person/id}
::pc/output [:person/name :person/age]}
(person-by-id id)) ; #:person{:name "foo" :age 42}