This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-21
Channels
- # announcements (15)
- # babashka (2)
- # beginners (90)
- # cider (3)
- # circleci (1)
- # clj-kondo (5)
- # cljs-dev (7)
- # clojure (49)
- # clojure-australia (9)
- # clojure-berlin (3)
- # clojure-dev (1)
- # clojure-europe (58)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-uk (7)
- # clojurescript (66)
- # code-reviews (1)
- # community-development (3)
- # conjure (47)
- # datomic (57)
- # emacs (4)
- # fulcro (5)
- # graalvm (1)
- # introduce-yourself (7)
- # jackdaw (1)
- # jobs (2)
- # kaocha (4)
- # lsp (87)
- # nrepl (1)
- # off-topic (33)
- # pedestal (7)
- # portal (12)
- # re-frame (7)
- # reitit (11)
- # releases (1)
- # ring (1)
- # rum (7)
- # sci (2)
- # shadow-cljs (38)
- # sql (15)
- # vim (2)
Stumped again. I have been trying to input a client secret from the server into my Fulcro app for several days now. I tried df/load!
and m/returning
with a data-only component that has a singleton ident. In the latter case, the data is loaded into the singleton component, but I do not know how to get it into the component that uses it. I can share some of the code if anyone has a suggestion as to what to do. Thanks!
to get on the component that uses it, add the singleton component query into the target component, for example:
:query [:thing/id :thing/title {[:singleton-thing "here"] [:client/secret]}]
Thanks @U066U8JQJ!
You could also (df/load! :your-secret-resolver .... {:target (targeting/replace-at [:my-secret])})
to get top-level key :my-secret
in the client DB and use Link Query to get it from your component, such as [:my-secret '_]
.