Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Mutations should auto update cache #6

Open
stolinski opened this issue Oct 11, 2021 · 2 comments
Open

Mutations should auto update cache #6

stolinski opened this issue Oct 11, 2021 · 2 comments

Comments

@stolinski
Copy link
Contributor

No description provided.

@stolinski
Copy link
Contributor Author

Basically since the cache is pretty naive, you could easily just have the return update it's given object in the cache.

@stolinski
Copy link
Contributor Author

Not going to happen the way things exist now. It could, but tbh it's very easy to auto update. Maybe you could have an api that looks like....

runMutation({variables:gqlvars, store: store, optimistic: func})

I guess that would do it. 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant