fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Jakub Holý 2020-09-18T06:09:26.000200Z

@wilkerlucio ❤️ Also: > there is a bug in the current Clojure writer, it -would be nice with a link?

futuro 2020-09-18T15:57:34.004400Z

For various reasons, I’m trying to replace the frontend for an application, but need to leave the server in place. Am I inviting lots of pain into my life by trying to use Fulcro only for the frontend?

futuro 2020-09-18T15:58:55.006600Z

I’ve read the first three chapters of the Fulcro book, and have started on the chapter about remotes, but I’m wondering if I’m going too far against the grain by not using a Fulcro backend as well.

Michael W 2020-09-18T15:59:57.007500Z

I have used it to tie to multiple backends, I have like 6 different apis from 6 different backends all tied to 1 fulcro frontend.

futuro 2020-09-18T16:54:59.008100Z

I’m glad to hear it.

futuro 2020-09-18T16:55:36.009Z

How was it to tie in the auto-normalization functionality?

Michael W 2020-09-18T18:04:44.010Z

I just wrote resolvers for each thing I wanted that pull the data from the api, and put it into the format pathom wants, the auto-normilization happens transparently from there.

👏 1
Michael W 2020-09-18T18:05:55.011400Z

Just as an example, I have an api that gives back: {:site_id 1 :site_name "SomeName"}. Pathom and fulcro want namespaced keys, so I transform that to {:site/id 1 :site/name "SomeName'}.

👍 1
tony.kay 2020-09-18T21:04:18.013400Z

Fulcro 3.3.3 on clojars. Includes a nice generalized error-boundary macro based upon code originally written by @currentoor. I made the actual error rendering customizable, and made it so that you can get around the immediate React restriction of only being able to catch errors that happen within children. See https://github.com/fulcrologic/fulcro/blob/develop/src/main/com/fulcrologic/fulcro/react/error_boundaries.cljc#L63 Book updated with: http://book.fulcrologic.com/#_react_errors

👍 6
❤️ 1
Jakub Holý 2020-09-19T14:58:54.021500Z

Awesome! I was thinking that something like this would have been useful...