Thanks, I had tried that first before asking. It kind of works but it keeps refreshing always. I only want to fetch fresh data only when update is made. i.e after mutation
Actually, Success component has a prop called “refetch”, which is a function.
When you save or do whatever you’re doing, just:
refetch()
And that’s all.
EDIT:
Wow, 2 years later.
Sry about that, maybe it wasn’t there back in the day when the question was asked, but hope it can help future folks who stumble here like I did.