Fork me on GitHub
#untangled
<
2017-03-09
>
urbank16:03:15

I'm still confused about generic components, and how their data ends up in tables. I think it would be clear if I understood: what would it take to turn the Todo app into a generic component?

urbank16:03:08

Because as I understand it now, more complex generic components must be wrapped in a component that provides it with state

tony.kay18:03:25

Anything that has an Ident will work as a completely relocatable thing, since all of the mutations related to it will target a table, and the query for it can be composed into a parent. The only thing it takes to move a component is to make sure you have a clear story around the server obtained data lifecycle

tony.kay18:03:02

for example, if I load a todo list from the server, then as long as that load is relative to the todo list's ident, it won't matter where it goes in the UI...the data load is also relative

tony.kay18:03:44

but if I have a global load that loads a bunch of todo lists, then I'll need to manage the data lifecycle of specific todo lists in the app (e.g. I'll have to write post-mutations that "heal" the database graph edges of the components to point to their data)

tony.kay18:03:02

It is still an "independent component" inasmuch as a component that talks to servers can be

tony.kay18:03:22

but if the data model moves to something larger, shared, and more global, then there is more work to do, as one would expect

cqautomatic20:03:53

Hello all been lurking here a bit, @tony.kay thanks for all your transparency and work on the untangled project. We are having an issue with non-homogenous union queries that include one recursive component and multiple non-recursive components. Essentially the om/full-query composite-component returns only the information in regards to the recursive component and not the other unioned components. Has anyone solved this? Is it an expected outcome?