Replies: 6 comments 2 replies
-
Came away with the same impression. react-query has a lot, I've used it in the past, and would advocate for it in a greenfield project. But most of that seems marginal here. So +1 from me for SWR. But if there's an intention of switching to server-side rendering down the road, I'd give this a read: https://tkdodo.eu/blog/you-might-not-need-react-query |
Beta Was this translation helpful? Give feedback.
-
(FYI we had settled on using Github issues so as to piggyback on the issue state to track RFC status. Let's keep this one here but also let's bring it up in the next meeting if we have found reasons to switch.) |
Beta Was this translation helpful? Give feedback.
-
+1 from me for SWR as well, let's do it gradually in different tickets/prs so we can have simple review and testing sessions, and maybe add more tests when needed |
Beta Was this translation helpful? Give feedback.
-
+1 for SWR. @vacekj are you planning to implement other features like caching etc as well in the current revamp that you are planning? |
Beta Was this translation helpful? Give feedback.
-
If you mean caching of fetch requests to indexer and graph and others, then we get that for free from SWR.
JV
…On 17. 8. 2023 10:46 +0200, eagle ***@***.***>, wrote:
+1 for SWR. @vacekj are you planning to implement other features like caching etc as well in the current revamp that you are planning?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Consensus achieved on SWR, closing. |
Beta Was this translation helpful? Give feedback.
-
@bard @gravityblast @bhargavaparoksham
Currently we are using a mix of SWR and manual data fetching in Explorer.
Why data fetching lib in general:
Why SWR:
Why not SWR:
https://tanstack.com/query/v4/docs/react/comparison Comparison between SWR and React Query
Why not other libraries?
As this is a dependency of Explorer voyage, unless anyone has arguments against, I would love to expedite this from a week to ASAP™.
Beta Was this translation helpful? Give feedback.
All reactions