-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: update apollo-client #1027
Conversation
The final problem with the v3 upgrade seems to be the local fields used for storing pending interaction step CrUD operations. At first this was presenting with an in-browser warning about a Additional debugging of local fields resulted in the Interaction Steps section closing whenever a script changed. Reverting all changes did not solve that issue. That was as far as I got before reverting the whole thing.
|
e30fecb
to
b979843
Compare
Writing interaction steps to the cache caused the GET_EDIT_CAMPAIGN_DATA query to be re-fetched. The results of re-fetch then overwrote the local changes for pending interaction step changes. This re-fetch happened because in apollo-client@3 cache-and-network fetch policies re-run whenever there is a cache update that affects the query. For more information, see: apollographql/apollo-client#6760 (comment)
Writing interaction steps to the cache caused the For more information, see: |
The merge function warning turns out to be unrelated. It is still an issue when saving a delete: following the mutation HTTP request, the local cache still contains the deleted step (marked |
Adapts to two apollo client changes: 1. readFragment returns null for insufficient data instead of throwing MissingFieldError exceptions 2. writeFragment now only writes to fields present in the fragment itself
Additional changes made. Next round of QA
|
Description
Update
apollo-client
to v3.Motivation and Context
Redoing #1018.
To-do:
ci-cd.yml
How Has This Been Tested?
This has been (more thoroughly) tested locally.
Screenshots (if appropriate):
N/A
Types of changes
Documentation Changes
N/A
Checklist: