T
TanStack•2y ago
other-emerald

Invalidating useSuspenseQuery after mutation

Is it possible to invalidate query after mutation while I'm using useSuspenseQuery?
4 Replies
exotic-emerald
exotic-emerald•2y ago
Yes
other-emerald
other-emeraldOP•2y ago
How :)?
exotic-emerald
exotic-emerald•2y ago
like a normal query
other-emerald
other-emeraldOP•2y ago
Actually it works 😄 Thank you. I was using wrong query client and using useQueryClient worked

Did you find this page helpful?