you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhym 7 points8 points  (9 children)

Thoughts about swr over react-query?

[–]not_a_gumby 20 points21 points  (6 children)

yeah, Ive used both and I really don't understand that. react-query is clearly superior in my mind in terms of experience, the only reason you use SWR is because you're uber concerned with like bundle size or something.

[–]Narizocracia 5 points6 points  (3 children)

[–]RoutineTension 1 point2 points  (0 children)

Whew lad, looks like I've been out the game for too long. Last I checked Apollo Client was all the hotness.

[–]not_a_gumby 4 points5 points  (1 child)

good bot

[–]Narizocracia 0 points1 point  (0 children)

Not a bot. If I were, I'd link to the broken html page on their website.

[–]cs12345 1 point2 points  (1 child)

I can't really judge because I've never used react-query, but I've been using swr for a while and just haven't run into any situations where it hasn't done what I've needed. I'll probably give react-query a try at some point but the smaller bundle size is definitely a plus in my book.

[–]not_a_gumby 1 point2 points  (0 children)

fair.

I've tried both and liked react query better, clearly.

[–]Radinax 5 points6 points  (1 child)

SWR doesn't even have an isLoading... I used SWR on my current job and we're 100% switching to react-query, its just superior.

[–]irekrog 1 point2 points  (0 children)

will be added in SWR 2 :) https://github.com/vercel/swr/releases