-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refetch queries #482
Refetch queries #482
Conversation
This is great, I'm excited for this feature to get released! One quick thought: perhaps calling the option |
2323d97
to
60273fb
Compare
I think |
90fc9f3
to
54cd999
Compare
Rebased @stubailo |
@@ -9,6 +9,7 @@ Expect active development and potentially significant breaking changes in the `0 | |||
|
|||
- Fixed issue with `fragments` array for `updateQueries`. [PR #475](https://github.com/apollostack/apollo-client/pull/475) and [Issue #470](https://github.com/apollostack/apollo-client/issues/470). | |||
- Add a new experimental feature to observable queries called `fetchMore`. It allows application developers to update the results of a query in the store by issuing new queries. We are currently testing this feature internally and we will document it once it is stable. | |||
- Added an `invalidateQueries` option to `mutate`. The point is to just refetch certain queries on a mutation rather than having to manually specify how the result should be incorporated for each of them with `updateQueries`. [PR #482](https://github.com/apollostack/apollo-client/pull/482) and [Issue #448](https://github.com/apollostack/apollo-client/issues/448). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still says invalidateQueries
@Poincare looks great, but I think this might have a weird interaction with a thing Slava just added with the pagination PR. |
@@ -558,25 +582,15 @@ export class QueryManager { | |||
} | |||
const resultBehaviors = []; | |||
|
|||
const queryIdsByName: { [name: string]: string[] } = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was from Slava's PR and I moved it
152d664
to
57a84b9
Compare
@Poincare we should add docs for this. |
Added an
invalidateQueries
option toclient.mutate
as per #448.TODO:
Rebased on top of Slava's PR #472.