Swr is nice. But after testing both swr and react-query, i can say that the later is far stronger with a lot more goodies.
Nowadays, when in doubt, i'll recommend using react-query
What would you say are the advantages of using react-query over SWR? I'm curious because we're using SWR, and I would like to know if it's worth the change.
Hi,
I'm testing the swr and I want that the swr get data from the server only once, at the first page view, and then, only reload the data/cache after 15 minutes...
I noriced by the web dev console that the swr hit the server all the times when I view a page, even when the response is cached.
Swr is nice. But after testing both swr and react-query, i can say that the later is far stronger with a lot more goodies.
Nowadays, when in doubt, i'll recommend using react-query
What would you say are the advantages of using react-query over SWR? I'm curious because we're using SWR, and I would like to know if it's worth the change.
Thanks!
@ecyrbe I would like to know too
Hi,
I'm testing the swr and I want that the swr get data from the server only once, at the first page view, and then, only reload the data/cache after 15 minutes...
I noriced by the web dev console that the swr hit the server all the times when I view a page, even when the response is cached.
any thoughts?
Yeah same, I want to know that how to not hit server on every refresh/reload in useSWR.