Fork me on GitHub
#untangled
<
2017-01-23
>
ianchow02:01:00

@eric.shao you're getting “name nil, mate nil” in the Person component because, as you can see in the PeopleWidget component, the data you're passing down are idents ie. [:db/id 1] instead of actual results eg. {:db/id 1, :person/name “bob”}. try checking the root query and make sure all sub queries have been properly composed using om/get-query to allow om to denormalize idents into data.

eric.shao03:01:37

@ianchow thank you. If “idents” involved,then every component level should have IQuery [{:key (om/get-query child)}] ?

eric.shao03:01:04

I thought PeopleWidget should not have query-expression.

eric.shao03:01:53

Now my code is this:

eric.shao03:01:02

They show! Another question: How to control the recursive-query ’s nesting level?”

claudiu19:01:51

Hello, is untangled designed to be used for universal apps (server side rendering in clojure) ?

tony.kay19:01:17

@claudiu It is designed for full-stack SPAs. Server-side rendering for initial page loading speed is in progress (latest snapshot should do it, but not well tested, yet).

tony.kay19:01:00

I don't know what you mean by "universal". If you mean you'd like to serve html pages on each mouse click via server-side render, then no...don't do that.

claudiu19:01:16

@tony.kay I meant server-side rendering for initial page load, also love the user experience without initial loading states. Thank you, will give the latest snapshot a go :)