Skip to content
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

Persist offline records at the Apollo queue link level #668

Open
mdeitner opened this issue Jul 18, 2022 · 0 comments
Open

Persist offline records at the Apollo queue link level #668

mdeitner opened this issue Jul 18, 2022 · 0 comments
Labels
Engineering Internal engineering team issue

Comments

@mdeitner
Copy link
Collaborator

Records (currently just Engagements) created offline are manually persisted to local storage. When the app regains internet access the records are sent to the proper view/hook so they can be persisted to the database.

This solution requires custom logic for each record type that we'd like to persist client side as well as logic to avoid duplicates with the Apollo cache.

A better solution might be to persist the records in a custom Apollo queue link.

@mdeitner mdeitner added the Engineering Internal engineering team issue label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Internal engineering team issue
Projects
None yet
Development

No branches or pull requests

1 participant