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

Able to detect wether entity in cache is optimistic or not #389

Open
piotrpawlik opened this issue May 31, 2023 · 0 comments
Open

Able to detect wether entity in cache is optimistic or not #389

piotrpawlik opened this issue May 31, 2023 · 0 comments
Labels
📕 cache Feature requests related to the cache

Comments

@piotrpawlik
Copy link

Problem

There is a constant problem with optimistic responses when trying to delete optimistic resource before actual response comes back.

When artificially created id is added to optimistic response (which is common practise), then deleting such object will fail, since id is unknown to backend.

Suggested solution

I'd like to see sometime similar to solutions to this floating on the Internet (such as this) to be officially incorporated into apollo-client.

This would save effort to manually add linked solution to every optimistic response and unify approach to this problem.

@jerelmiller jerelmiller added 📕 cache Feature requests related to the cache project-apollo-client (legacy) LEGACY TAG DO NOT USE labels Jul 19, 2023
@jerelmiller jerelmiller removed the project-apollo-client (legacy) LEGACY TAG DO NOT USE label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📕 cache Feature requests related to the cache
Projects
None yet
Development

No branches or pull requests

2 participants