Fork me on GitHub
#fulcro
<
2018-04-18
>
tony.kay00:04:30

@piotrek in general you probably want your root node to just be root, and not participate in the app

tony.kay00:04:06

something silly like

(defsc Root [this {:keys [application]}]
  {:query [{:application (get-query RealNodeOfApp)}]
   :initial-state {:application {}}}
  (ui-real-application application))

cjmurphy00:04:30

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.

tony.kay00:04:23

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.

Chris Rosengren02:04:55

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?

Chris Rosengren03:04:07

Nevermind, fulcro-template has the examples I was looking for