VulcanJS / vulcan-npm

The full-stack JavaScript App Framework
https://vulcan-docs.vercel.app
MIT License
30 stars 8 forks source link

Explose refetchQueries for optimistic updates after a mutation #102

Open eric-burel opened 2 years ago

eric-burel commented 2 years ago

Is your feature request related to a problem? Please describe. Apollo now provides a refetchQueries option to refetch queries by name

=> mutations could automatically trigger a refetch of multi and single queries?

However, this pattern is limited:

So it's worth exploring but not sure if it would actually work

https://www.apollographql.com/docs/react/data/mutations/#refetching-queries