-
Notifications
You must be signed in to change notification settings - Fork 787
Use-cases and API wish-list #519
Comments
I've been thinking a lot about multiple clients and prefetching queries. These are our two largest needs for what's next. I'm hoping to have API designs soon for them. That and I REALLY want good flow support + the codegen support for flow |
I think an easy way to use subscriptions from React would be high on my list. |
Current use cases (excuse the slight frustration leaking through):
Not using fragments or unions. Ids are globally unique. Comments from other issues:
In general, the API feels haphazard, and is not very orthogonal. It has some features that would be better done in separate libraries ( I really think that the concept is wonderful, and the execution can be improved to make it wonderful too. (The concept being "I need this slice of server state. I don't care how you get it.") Some solutions:
|
Use case(s): Consistent rendering and error handling between client and server
Current behaviour
Suggestion
Please let me know if you require more information or wish to change the format of the use case. |
I am working on a timeline based component that fetches data from GraphQL backend. When user clicks on previous or next button, I need to call fetchMore by providing a new time range. For any given time range, there is also possible pagination involved. To keep track of whether data is fully loaded or still needs fetchMore for pagination, I have a data structure, similar to the following dataStatus = {{'04_2017': {loaded: false, pageInfo: ...}, and keep it updated when fetchMore is initially called and in a callback function in updateQuery.
Perhaps there are better ways to solve this type of timeline related queries. Would it be feasible to have Apollo keeps track of which data set is retrieved through which variables passed to fetchMore? |
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo! |
This issue has been automatically closed because it has not had recent activity after being marked as no recent activyt. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to React Apollo! |
This is a discussion issue for documenting actual use-cases and suggestions for an improved API that people have.
Started because of this issue: #461
@wmertens @calebmer @stubailo @jbaxleyiii let's continue the discussion about API improvements here!
The text was updated successfully, but these errors were encountered: