fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Björn Ebbinghaus 2021-01-08T00:03:30.236300Z

Ok something is kind of working now… Having the situation, where I have two deferred routings with the same ident RootRouter routes to Process. and the ProcessRouter (inside Process) routes to ProcessHome. Process offers UI for every sub page of the router. [:process/slug :process/title] ProcessHome has details for the Process. [:process/slug :process/title :process/description]

Mr. Savy 2021-01-08T01:05:03.238200Z

what purpose does :ui/fetch-state serve in the pagination example in the book? I see that ui bits are typically used to mess with front end stuff, but I don't see the use case for it in the example.

tony.kay 2021-01-08T01:17:56.238300Z

ah, that is a bit of a problem 🙂

Mr. Savy 2021-01-08T02:09:59.238500Z

also I figured out how to run the shadow repl through intellij so that's pretty cool

Gleb Posobin 2021-01-08T05:13:22.239200Z

What's the use for co-located CSS? Tried to google for that and didn't find much.

Jakub Holý 2021-01-08T12:48:58.249900Z

it is popular in the React world - https://reactjs.net/features/css-in-js.html The idea is to avoid style conflicts so you can safely style your component and be sure now other one will mess up with it (b/c the styles will end up including the name of the component or st. similar)

Jakub Holý 2021-01-08T12:50:24.250200Z

this gives the motivation I think https://speakerdeck.com/vjeux/react-css-in-js?slide=2

Gleb Posobin 2021-01-09T05:51:09.260100Z

@holyjak Nice, thank you!

Mr. Savy 2021-01-08T05:56:16.239300Z

if you mean tying it in the component I think that's generally recommended for libraries, but otherwise optional

Jakub Holý 2021-01-08T18:19:04.254100Z

Tip: If you use https://blog.jakubholy.net/2020/troubleshooting-fulcro/ remember to refresh the page regularly, I update it +- frequently.

Jakub Holý 2021-01-08T18:23:51.257300Z

@tony.kay here https://youtu.be/P2up8qcDmJs?t=1644 you define the all-widgets as a defattr, saying that it could also be just a resolver but that by using defattr you sometimes get some other things out of it. So when would you recommend using defattr vs defresolver if I only need the resolver, i.e. if I don't need to use it as an attribute on a form/report? Thank you!

tony.kay 2021-01-08T18:26:41.258700Z

defattr is for most cases. I use defresolver for top-level keys, like the entry point of a report, since you never need to augment that with anything. You can also make a defattr and a resolver, which might be good if you are for example using pathom 3 with current RAD, or pathom 2 with some future pathom3-based RAD.

❤️ 1
tony.kay 2021-01-08T18:27:03.259Z

(or you want to put resolvers in CLJ file instead of CLJC)

tony.kay 2021-01-08T18:44:50.259700Z

that last reason is probably most salient right now @holyjak, since resolvers in attrs always lead to a bunch of conditional CLJ

👍 1