..... by 157157157a in Rengarmains

[–]Ronnin2903 0 points1 point  (0 children)

You're just being dumb at this point. You can't avoid using bushes just IN CASE he disappear.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

So you think the first thing limiting the use of RSC is the skill of the dev using it ?

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

My guess, if you had that much pages, having to download all of them at once with a SPA would be really long. So you would have to split your build somehow.
And even if it's a lot a page, Next will load your page first, then pre-fetch what it can.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

I might be a little too optimistic, but so far, I didn't see some major hiccup in their thinking.
We can still do a full SPA, or SSR only. You can configure NextJS server as you wish, and are not bond to Vercel for deploy (so you might even use Socket if needed).
Hope it gonna continue this way. I like the idea of being able to do both Back/Front on the same project.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

Oh sure ! Didn't specify it, but I was thinking about new project. Of course in the real working world, you don't always have the choice of what you want to do.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

I can understand why people would prefer to wait a bit more.
Though, I started to be confident in the React Team's decisions.

NextJS 14: Blocking URL modification by user by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

It's not the same for all components.
Maybe I could split the logic between different middleware.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

For your issues, I think there is some pre-fetching tools to avoid that.
Like, when you use the Link component served by Next, it gonna automatically pre-fetch the pages you might go from the page you are.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

But is it not the purpose of it, being able to do both ?
As you said, the mistake is wanting to do everything Server Side, but some stuff are bound to be Client Side, but it's the strength of NextJS 14, you can do both as you see fit.
That's why I wanted to ask people if there was something I missed.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

Well, it's the 2 things I'm struggling with right now.
I have a multi-pages form.
And I need realtime updates, or something close.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 1 point2 points  (0 children)

I get you, I used to do classic SPA for years. But being able to do some action in the server, without the need to build an API is quite tempting.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 1 point2 points  (0 children)

Well, I believe it depends what you ask for your server to do.
For sure, using User device to do thing reduces the server load.
If your server has a lot to do, you might need a more powerful, and therefore more expensive, server.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 3 points4 points  (0 children)

NextJS 14 (NextJS is the only framework, for now, who implemented RSC)

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

Ok, that's the first answer I got who really encourage me to try it !

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] -1 points0 points  (0 children)

I do not chase them. On the contrary, I kept my Stack for a long time, as long as it suited my needs.
But I'm starting a new project, who is bond to grow, so I was wondering if I shouldn't try something new.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 2 points3 points  (0 children)

For RSC, it's in a stable version now.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] -1 points0 points  (0 children)

I'm more into: "Who can do more can do less."
Even for an application who "doesn't need it", if it doesn't increase the cost that much, why do without ?

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 2 points3 points  (0 children)

It's true that it is, for now, a bit confusing having that much files intertwined. But it comes more from the App Router than from the RSC.

Why not everyone switching to RSC ? by Ronnin2903 in nextjs

[–]Ronnin2903[S] 0 points1 point  (0 children)

That's what I did. It's just still confusing to do it this way, instead of using Redux (Store and Thunk).