Replies: 3 comments 7 replies
-
SWR revalidates in many cases, some of them could be:
|
Beta Was this translation helpful? Give feedback.
-
I had this same issue, and it turned out to be that the keys weren't exactly the same due to a function instance being different. I lifted that function creation up into a context and that solved the problem |
Beta Was this translation helpful? Give feedback.
-
For anyone who else who it might help, I encountered similar issues passing in URL objects. Easiest solution that did the trick was to to passing in url?.pathname instead -- that way even if the underlying URL object changes the string value is still the same. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I have built a very simple application to have a play around with
swr
. I have run into an issue though where I am seeing duplicate requests in the network tab when I run the application in slow 3g.I have the following code related to
swr
:However, in my network tab I am seeing the following:
Please ignore the 503 errors (I have designed it to randomly return a 503 to test functionality), but as you can see we have multiple requests for the same ID (107 is there multiple times for example).
Is there something I am missing?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions