Is there a way to fetch notifications in real-time?
I've implemented a simple fetch query to retrieve notifications. However, I want to receive notifications instantly without needing to re-fetch, and it behaves somewhat like a subscription, Is there any method by react-query to react this behavior?
1 Reply
like-gold•2y ago
Using WebSockets with React Query
A step-by-step guide on how to make real-time notifications work with react-query