This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-29
Channels
- # aleph (1)
- # announcements (10)
- # aws (1)
- # beginners (110)
- # calva (4)
- # cider (26)
- # clj-kondo (14)
- # cljdoc (24)
- # cljsrn (16)
- # clojure (76)
- # clojure-europe (3)
- # clojure-ireland (2)
- # clojure-italy (15)
- # clojure-nl (8)
- # clojure-spec (23)
- # clojure-sweden (4)
- # clojure-uk (92)
- # clojurescript (37)
- # cursive (19)
- # datomic (59)
- # duct (1)
- # emacs (4)
- # fulcro (7)
- # graalvm (7)
- # graphql (1)
- # hoplon (69)
- # jobs (4)
- # jobs-rus (1)
- # kaocha (2)
- # leiningen (5)
- # luminus (2)
- # pathom (8)
- # reagent (6)
- # reitit (11)
- # spacemacs (12)
- # sql (3)
- # tools-deps (9)
- # unrepl (1)
- # vim (57)
Were you around when people were frustrated when they were running into issues using just a single element namespace? Like (ns fulcro)
, not even (ns fulcro.core)
How does one deal with nested data in a form? (i.e.) {:person {:address {:zip}}
, where I want :zip
to be a field
I see you are interested in SSR @rickmoynihan FYI these are the two things that bit me: - https://github.com/fulcrologic/fulcro/issues/299 - https://github.com/fulcrologic/fulcro/issues/301
thanks
@njj The book covers nesting components that you want to treat as nested forms for both kinds of form support. The form-state support is recommended, but if you don’t plan to break the elements up into components as described, then it is up to you. Make an input. Show the value. Make a mutation that can change the value. Figure out how you want to encode the delta. The form-state support leverages the component’s knowledge to help with that, but it cannot cover all the possible random cases you might invent. Form-state will only work with nesting if you actually nest components to match your nested data. Or, if it is to-one you could flatten it at the server layer with pathom and make it simpler for the client…no need for it to know anything about the structure in your db.