This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-29
Channels
- # announcements (7)
- # babashka (4)
- # beginners (21)
- # calva (31)
- # cljdoc (12)
- # cljsrn (5)
- # clojure (89)
- # clojure-europe (26)
- # clojurescript (9)
- # conjure (1)
- # cursive (3)
- # data-science (20)
- # events (2)
- # fulcro (4)
- # gratitude (7)
- # introduce-yourself (1)
- # lsp (24)
- # nextjournal (3)
- # off-topic (5)
- # re-frame (22)
- # shadow-cljs (48)
- # tools-deps (11)
Good Morning all. I am trying to reduce loading times of the https://github.com/fulcrologic/fulcro-template . Below is the network time. Why does remote-relay
and api
take so long? How can I reduce the loading of the remote-relay
and the api
Fulcro really has very little to do with that. remote relay is shadow, I think. The API is just hitting your resolvers/code through Ring.
@U0CKQ19AQ, OK, thank you, I will ask in the shadow-cljs channel. As far as the API, is it in the file src/main/app/server_components/middleware.clj
? In the
(defstate middleware
:start
(let [defaults-config (:ring.middleware/defaults-config config)
legal-origins (get config :legal-origins #{"localhost"})]
(-> not-found-handler
(wrap-api "/api")
wrap-transit-params
wrap-transit-response
(wrap-html-routes)
;; If you want to set something like session store, you'd do it against
;; the defaults-config here (which comes from an EDN file, so it can't have
;; code initialized).
;; E.g. (wrap-defaults (assoc-in defaults-config [:session :store] (my-store)))
(wrap-defaults defaults-config))))