This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-13
Channels
- # aleph (15)
- # announcements (4)
- # babashka (36)
- # babashka-sci-dev (1)
- # beginners (15)
- # biff (2)
- # calva (15)
- # cider (3)
- # clj-kondo (8)
- # clojure (149)
- # clojure-europe (14)
- # clojure-norway (13)
- # clojure-switzerland (1)
- # clojure-uk (1)
- # clojurescript (21)
- # community-development (5)
- # cursive (20)
- # data-science (2)
- # datomic (7)
- # duct (5)
- # emacs (19)
- # etaoin (3)
- # events (2)
- # fulcro (11)
- # introduce-yourself (2)
- # jobs (4)
- # jobs-discuss (19)
- # joyride (1)
- # leiningen (11)
- # malli (7)
- # membrane (131)
- # nbb (12)
- # nginx (1)
- # off-topic (33)
- # pathom (8)
- # polylith (28)
- # re-frame (8)
- # sci (7)
- # shadow-cljs (225)
- # spacemacs (10)
- # specter (1)
- # vim (10)
- # xtdb (8)
hi all! I'm porting a pretty large app over from fulcro2 to fulcro3, and I'm trying to port the routing over to dynamic routers. Thing is, we use SSR for the app, and the docs (https://book.fulcrologic.com/#_initial_route) say this function exists dr/ssr-initial-state
to fulfill the function of change-route!
in building the state. However, such a function does not exist in the repo at the moment. There's ssr/get-ssr-initial-state
but this seems like it has nothing to do with dynamic routing. I suppose at the very least the docs need to be updated, but more importantly, what can I use to make SSR work with dynamic routing?
Would https://gist.github.com/holyjak/6ead10c0b447e098026f3e24e4f1e519 help? Pls send a PR to improve the fulcro docs when you figure this out!
Sorry for the extremely late reply! Thank you for your response, but because this is non-trivial, I've opted to instead remove the SSR functionality from the app i'm working on. >_<
Hello. In fulcro rad, what’s the difference between using defresolver
and an attr
with a ao/pc-resolve
value?
ao/pc-resolve is used by a middleware to generate resolvers and defresolver defines a resolver
Not really any significant difference. Personally I find it cleaner with a separate defresolver but ymmv
Okay thanks!
Just to confirm my thoughts, are resolvers defined this way the fulcro rad solution to derived data from actual storage? (eg the closest solution from re-frame subscriptions)
No. Subscriptions are client side, resolvers are server side. But also yes, Pathom is intended to shape the data into the form the frontend needs.
Okay, thanks.
Little bit of background on this in this https://clojurians.slack.com/archives/C68M60S4F/p1645125121421419?thread_ts=1645040966.901469&cid=C68M60S4F.