Mutations should auto update cache
stolinski opened this issue · comments
Scott Tolinski commented
Scott Tolinski commented
Basically since the cache is pretty naive, you could easily just have the return update it's given object in the cache.
Scott Tolinski commented
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. 🤔