Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> However most modern frameworks use something like React Query, GraphQL,

imo most projects do not need and are made worse by that bloat.



I think most react-based projects that need data fetching should absolutely be using SWR (https://swr.vercel.app/).

It's light enough to be worth it from a very small amount of API calls. Having caching and loading states is a significant UX bonus very quickly.


Is it really lighter than react query?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: