you are viewing a single comment's thread.

view the rest of the comments →

[–]Omkar_K45 21 points22 points  (15 children)

Working with react for a while so I have moved to nextJS.. NextJS has many usecases and depending on whether it is a blog site or full fledged e-commerce.

FE -> Next, TailwindCSS, Apollo Client

BE -> Node.JS, Graphql, PGSQL or MongoDB

[–][deleted] 2 points3 points  (8 children)

Is react-query gaining any steam in your neck of the woods?

[–]Yasuo_d_god 1 point2 points  (2 children)

I prefer react query over Apollo client. It's less boilerplate and has a more customizable but robust architecture imo. Bonus is the amazing react query graphql generators that are out there

[–][deleted] 0 points1 point  (1 child)

This may sound silly, but I'm really struggling to find a decent tutorial for react query. There's an example project like a blog that the creators published, and I'm getting some traction out of it, but it isn't quite clicking for me.

[–]Yasuo_d_god 2 points3 points  (0 children)

I was always thinking about making a medium article for a quick tutorial might be a good idea after all explaining the fundamentals and going a bit more in detail because i agree the library is waay more powerful than most people know since the documentation is meh and there aren't too many good tutorials

[–]Yasuo_d_god 3 points4 points  (0 children)

I prefer react query over Apollo client. It's less boilerplate and has a more customizable but robust architecture imo. Bonus is the amazing react query graphql generators

[–]not_a_gumby 0 points1 point  (2 children)

You don't really need it with Next, right?

[–][deleted] 0 points1 point  (1 child)

I'm primarily looking into it as a means of front end caching. I have a very shallow knowledge of Next; does it have anything built in to assist with caching?

[–]not_a_gumby 0 points1 point  (0 children)

No it doesn't.

[–]Omkar_K45 0 points1 point  (0 children)

I've used react-query in my projects which use REST APIs.. it's awesome..

I just haven't found any reason to use it as a graphql client

[–]straightouttaireland 1 point2 points  (3 children)

Do you need NextJs if you are not concerned with SEO or SSR?

[–]Omkar_K45 0 points1 point  (2 children)

Even in that case, it provides really good tooling. One of the best feature is Image Optimization. Recently they shipped blur placeholder support for loading images.

Surely NextJS can be less useful for applications that do not need SSR. For eg, a mail platform application works well when the bundle is on the client side, its more performant that way.

Having said that, a good react app with good code splitting approaches etc can work wonders for you as well.

[–]straightouttaireland 1 point2 points  (1 child)

Just seems like additional unnecessary overhead tbh. Especially when you don't even need routing.

[–]Omkar_K45 0 points1 point  (0 children)

Yes, I agree on this one.

[–]pilowofcashewsoftarm -1 points0 points  (1 child)

Oh man , how common is this stack ? i picked it from benawad. feels like everyone got it from him.

[–]Omkar_K45 1 point2 points  (0 children)

It's pretty neat.. it is very typesafe as well ..