T
TanStack3y ago
fair-rose

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
No description
4 Replies
fair-rose
fair-roseOP3y ago
@TkDodo 🔮 kindly guide me on this 🙏
subsequent-cyan
subsequent-cyan3y ago
onSuccess: ()=>queryClient.invalidateQueries([queryKey])
fair-rose
fair-roseOP3y ago
It's not refreshing mutation based data @TkDodo 🔮
flat-fuchsia
flat-fuchsia3y 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 ...

Did you find this page helpful?