In this article, we will see how useQuery can ease our job in polling and refetching APIs conditionally with a small example. We will now dive into the requirements without further ado.
https://medium.com/locus-iq/polling-simplified-with-react-query-usequery-dea3926f2eaa



