This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-07
Channels
- # announcements (11)
- # babashka (29)
- # beginners (70)
- # biff (13)
- # calva (1)
- # clojure (24)
- # clojure-europe (125)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-portugal (2)
- # clojure-uk (3)
- # clojurescript (9)
- # core-async (29)
- # cursive (4)
- # emacs (10)
- # etaoin (14)
- # events (3)
- # fulcro (10)
- # funcool (4)
- # helix (1)
- # honeysql (12)
- # introduce-yourself (1)
- # jobs (2)
- # juxt (2)
- # lsp (1)
- # off-topic (17)
- # polylith (58)
- # portal (20)
- # remote-jobs (2)
- # shadow-cljs (2)
- # squint (4)
- # tools-deps (9)
What is the preferred way to load a query once from the client db (as opposed to having a component depend on it) ? fdn/db->tree
?
(for context I need to load data from the client db while entering a route)
I am not sure what is best but if it works… . But it sounds a little strange. Why do you need this? And what do you mean “while entering”, is that :will-enter
?
Yes indeed. It’s actually a query param to my df/load!
that needs to be pulled from the app db.\
(following your tutorial on dynamic routing)
In that case I would not use df/load but a custom mutation that calls df/load and fetches whatever it needs from the state passed to it.
Oh yeah I see. Thank you.