This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-18
Channels
- # architecture (14)
- # beginners (89)
- # cider (336)
- # cljsrn (2)
- # clojure (181)
- # clojure-berlin (1)
- # clojure-dusseldorf (3)
- # clojure-finland (4)
- # clojure-germany (5)
- # clojure-italy (18)
- # clojure-norway (10)
- # clojure-spec (9)
- # clojure-uk (94)
- # clojurescript (84)
- # cursive (3)
- # data-science (4)
- # datomic (82)
- # emacs (2)
- # events (4)
- # figwheel (1)
- # fulcro (6)
- # graphql (2)
- # hoplon (46)
- # instaparse (24)
- # jobs (9)
- # lein-figwheel (2)
- # luminus (18)
- # lumo (3)
- # mount (1)
- # off-topic (14)
- # onyx (17)
- # parinfer (22)
- # planck (1)
- # protorepl (1)
- # re-frame (50)
- # reagent (7)
- # ring-swagger (6)
- # rum (4)
- # shadow-cljs (94)
- # spacemacs (9)
- # specter (7)
- # tools-deps (2)
- # uncomplicate (4)
- # vim (33)
@piotrek in general you probably want your root node to just be root, and not participate in the app
something silly like
(defsc Root [this {:keys [application]}]
{:query [{:application (get-query RealNodeOfApp)}]
:initial-state {:application {}}}
(ui-real-application application))
That should go in the book, then we will have a standard. I like :application
better than :ui/root
. Happy to put it in if you like.
I’m not quite ready to canonize that yet. I haven’t given it enough serious thought to make it a standard. Thanks for the offer, though.
To add authentication, is adding rings wrap-session somehow into the easy-servers injections reasonable? And then calling augment-response assining session+UID in the return of a defquery root on the server?
Nevermind, fulcro-template has the examples I was looking for