Can I use useSWR for all data fetching in my app? #1894
Unanswered
null-rider-404
asked this question in
Q&A
Replies: 1 comment 1 reply
-
React-Query and SWR are more like data management tools, to get data from an external source, you'll need to implement a fetcher, usually built with fetch/axios. You can make custom hooks that expose the data to avoid having to pass the fetcher function around. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone please explain if I could use useSWR everywhere in my app. Would that be okay to do so, or it may impact performance since swr will cache everything.
Beta Was this translation helpful? Give feedback.
All reactions