Fork me on GitHub
#fulcro
<
2019-05-24
>
carkh04:05:19

The Interceptor pattern is solving my problem with building a fulcro remote to communicate over the chromex chans. Makes the whole thing easy to test and reason about. Maybe a good addition for fulcro 3 ?

carkh05:05:21

with this i can develop and test in a regular workspaces page, then port it to my chrome extension (with a slightly changed interceptor stack) being reasonably certain it'll work

carkh05:05:02

and keep the benefit of fulcro inspect during dev

rickmoynihan09:05:12

I’m looking for a clojure(script) react library that can serve reactified components via SSR from a clojure/JVM backend. Am I right that fulcro doesn’t support this?

carkh09:05:32

looks like it can

rickmoynihan12:05:54

interesting… I’d somehow missed that completely

exit216:05:45

What’s the best way to deal with nested values in data that makes up a form? For example, I have a piece of data that may look like {:id 1 :title "Foo" :address {:zip 12345}} and I want the :zip to be used as the form field. What I have been doing is in my post mutation of fetching this data, I assoc it into the root of the data. But I’m wondering if there is a better way to do this?

currentoor17:05:27

why not use a nested form?

exit217:05:01

I’m not sure I’ve seen how thats done

currentoor00:05:26

it’s in the book online

currentoor00:05:50

the example with phone numbers

currentoor00:05:12

i believe the phone number part is the nested form and contact/person is the outer form

currentoor00:05:49

the book details how to do it and has an interactive example online with nested form and source code