how to invalidate data through mutation key?
Hi m fetching a data through post request so whenever user will upload new document below table i want to refresh how to do?? Anyone kindly guide

4 Replies
fair-roseOP•3y ago
@TkDodo 🔮 kindly guide me on this 🙏
subsequent-cyan•3y ago
onSuccess: ()=>queryClient.invalidateQueries([queryKey])
fair-roseOP•3y ago
It's not refreshing mutation based data
@TkDodo 🔮
flat-fuchsia•3y ago
stop pinging me on this maybe ? You haven't made the slightest effort on asking a proper question; this is literally a photograph of your screen. Any help on this is nothing but a huge waste of time. You clearly haven't even read the guidelines on how to ask a good question ...