gQuery icon indicating copy to clipboard operation
gQuery copied to clipboard

Mutations should auto update cache

Open stolinski opened this issue 4 years ago • 2 comments

stolinski avatar Oct 11 '21 04:10 stolinski

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

stolinski avatar Oct 11 '21 04:10 stolinski

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. 🤔

stolinski avatar Oct 22 '21 14:10 stolinski