You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
Theory: Given we're not using ApolloClient directly but instead using AWSAppSyncClient, which is built on top of Apollo, I'm wondering whether both react-apolloandapollo-client required by AWSAppSyncClient must be updated #3169 so that awaitRefetchQueries will function properly.
Unable to provide video/screenshot/reproduction because the project isn't public just yet, but thought I'd try an issue in case the above is enough to help get through this. Thanks!
The text was updated successfully, but these errors were encountered:
Update - Fixed one issue, awaitRefetchQueries shipped in the August release,[email protected], and mine was at react-apollo-2.1.9, the July release. Changelog reference.
@hwillson any ideas on this - we're launching soon and any insight would be very appreciated!
Closing due to no response or solution found. For those reading I ended up just leaving the code above and manually calling refetch in the navigated-to component.
Intended outcome:
awaitRefetchQueries
set to true will ensurerefetchQueries()
is completed before the mutation completes andonCompleted()
fires.Expected completion order:
refetchQueries()
mutate()
onCompleted()
, navigates to new screenActual outcome:
Actual completion order:
mutate()
onCompleted()
, navigates to new screenrefetchQueries()
Theory: Given we're not using ApolloClient directly but instead using AWSAppSyncClient, which is built on top of Apollo, I'm wondering whether both
react-apollo
andapollo-client
required by AWSAppSyncClient must be updated #3169 so thatawaitRefetchQueries
will function properly.Update -
package-lock.json
contains[email protected]
, and that release does containawaitRefetchQueries
functionality, seen here.awaitRefetchQueries
was supported as of 2.3.6, changelog reference.Package.json:
Related: #2267
Unable to provide video/screenshot/reproduction because the project isn't public just yet, but thought I'd try an issue in case the above is enough to help get through this. Thanks!
The text was updated successfully, but these errors were encountered: