Post

⚡️ Pro Tip: Always choose TanStack Query. Master state management effortlessly with top-tier libraries. TanStack stands out as the ultimate choice for server state. Mutations and invalidations have never been simpler 😍 Are you on the TanStack bandwagon yet? If not, what’s holding you back?

There's only ever 2 reasons for using SWR: 1. You admire Vercel and want to be pure to their software. I can respect that. 2. You need to save 9kb and are happy to forgo all of these features (and IMO better pluggability, types, DX): tanstack.com/query/latest...

0 reposts5 likes

SWR is so bad in many cases. Terrible with optimistic updates (RQ is also tough but better types), terrible default values (refetches like crazy), prefetching on every hover or visible link etc etc. Clearly developed to cause traffic.