-
Notifications
You must be signed in to change notification settings - Fork 13
Description
I'd like to start this as I feel like it'll take some time to come up with the right solution. I think we can do something similar to what Relay is advertised to do and put the results of the query in the app-state cursor, possibly a new top level key.
If my thinking about this is right, what we need to do is extend certain components with lifecycle hooks and collect their GraphQL fragments as they come into the DOM, fetching data as the full query changes. We might even be able to use the cursor to store the queries and observe the changes, collecting and fetching the query.
A good start would probably be collecting what we know about Relay and at the same time thinking about what we'd feel is the best way of doing the component data dependencies.