This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-08
Channels
- # asami (7)
- # aws (2)
- # babashka (21)
- # beginners (602)
- # calva (8)
- # cider (11)
- # clj-kondo (10)
- # cljfx (1)
- # clojure (177)
- # clojure-europe (43)
- # clojure-nl (3)
- # clojure-taiwan (2)
- # clojure-uk (45)
- # clojurescript (31)
- # depstar (8)
- # figwheel-main (2)
- # fulcro (12)
- # hugsql (2)
- # java (1)
- # jobs (2)
- # meander (1)
- # missionary (1)
- # off-topic (67)
- # other-languages (1)
- # pathom (212)
- # polylith (4)
- # rdf (1)
- # re-frame (10)
- # reagent (12)
- # reitit (28)
- # reveal (3)
- # shadow-cljs (21)
- # spacemacs (7)
- # sql (5)
- # tools-deps (12)
- # vim (1)
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.
What's the use for co-located CSS? Tried to google for that and didn't find much.
if you mean tying it in the component I think that's generally recommended for libraries, but otherwise optional
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)
this gives the motivation I think https://speakerdeck.com/vjeux/react-css-in-js?slide=2
@holyjak Nice, thank you!
Tip: If you use https://blog.jakubholy.net/2020/troubleshooting-fulcro/ remember to refresh the page regularly, I update it +- frequently.
@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!
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.