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
It all start with an Apollo warning about cache management
It happen when we udpate a customer metadata and remove one in the list.
Going further, it appear that the fragment management is messy, and that we manually udpate the cache, which we should not.
Basically, warning occurs because Apollo does not know what to do with the old metada list having more items that the received one.
This warning have been spotted during customer metadata and patched with a cache definition for customerMetadata
Steps to reproduce
You need to have a customer with one or more metadata You need to remove the customerMetadata key in src/core/apolloClient/cache.ts
Edit customer infos
Delete one metadata
Save customer
-> A warning should be prompted in your console
Work breakdown
Get rid of models single_object types on BE side
make sure the BE change is impacted on FE fragments definition
Refactor FE fragment definition and data management in the customer details and customer add/edit drawer
Remove customerMetadata key in src/core/apolloClient/cache.ts, remove manual cache update and make sure the warning is not present anymore when removing a metadata from an existing customer
The text was updated successfully, but these errors were encountered:
Context
This ticket has a wide scope.
It all start with an Apollo warning about cache management
It happen when we udpate a customer metadata and remove one in the list.
Going further, it appear that the fragment management is messy, and that we manually udpate the cache, which we should not.
Basically, warning occurs because Apollo does not know what to do with the old metada list having more items that the received one.
This warning have been spotted during customer metadata and patched with a cache definition for customerMetadata
Steps to reproduce
You need to have a customer with one or more metadata
You need to remove the
customerMetadata
key insrc/core/apolloClient/cache.ts
-> A warning should be prompted in your console
Work breakdown
single_object
types on BE sidecustomerMetadata
key insrc/core/apolloClient/cache.ts
, remove manual cache update and make sure the warning is not present anymore when removing a metadata from an existing customerThe text was updated successfully, but these errors were encountered: