12/11/2025 at 9:59:10 PM
React Server Components always felt uncomfortable to me because they make it hard to look at a piece of JavaScript code and derive which parts of it are going to run on the client and which parts will run on the server.It turns out this introduces another problem too: in order to get that to work you need to implement some kind of DEEP serialization RPC mechanism - which is kind of opaque to the developer and, as we've recently seen, is a risky spot in terms of potential security vulnerabilities.
by simonw
12/11/2025 at 10:12:16 PM
I was a fan of NextJS in the pages router era. You knew exactly where the line was between server and client code and it was pretty easy to keep track of that. Then I've began a new project and wanted to try out app router and I hated it. So many (to me common things) where just not possible because the code can run in the client and on the server so Headers might not always be available and it was just pure confusion whats running where.by tom1337
12/11/2025 at 11:06:37 PM
I think we (the Next.js user community) need to organize and either convince Vercel to announce official support of the Pages router forever (or at least indefinitely, and stop posturing it as a deprecated-ish thing), or else fork Next.js and maintain the stable version of it that so many of us enjoyed. Every time Next comes up I see a ton of comments like this, everyone I talk to says this, and I almost never hear anyone say they like the App Router (and this is a pretty contrarian site, so if they existed I’d expect to see them here).by Uehreka
12/11/2025 at 11:26:53 PM
I would highly recommend just checking out TanStack Router/Start instead. It fills a different niche, with a slightly different approach, that the Next.js app router just hasn't prioritized enabling anymore.What app router has become has its ideal uses, but if you explicitly preferred the DX of the pages router, you might enjoy TanStack Router/Start even more.
by hmcdona1
12/12/2025 at 6:03:12 AM
Last time I tried tanstack router, I spent half a day trying to get breadcrumbs to work. Nit: I also can't stand their docs site.by cjonas
12/12/2025 at 10:53:01 PM
Tanstack anything has breaking changes constantly and they all exist in perpetual alpha states. It also has jumped on the rsc train with the same complexity pitfalls.Some libs in the stack are great but they were made pre rsc fad.
by rustystump
12/12/2025 at 4:42:36 AM
OK I am personally surprised that anyone likes the Pages router? Pages routing has all the benefits (simple to get started the first time) and all the downsides (maintainability of larger projects goes to hell) of having your routing being determined by where in the file system things are.I don't care about having things simple to get started the first time, because soon I will have to start things a second or third time. If I have a little bit more complexity to get things started because routing is handled by code and not filesystem placement then I will pretty quickly develop templates to handle this, and in the end it will be easier to get things started the nth time than it is with the simple version.
Do I like the app router? No, Vercel does a crap job on at least two things - routing and building (server codes etc. can be considered as a subset of the routing problem), but saying I dislike app router is praising page router with too faint a damnation.
by bryanrasmussen
12/12/2025 at 5:47:55 AM
Remix 2 is beautiful in its abstractions. The thing with NextJS Roadmap is that it is tightly coupled with Vercel's financial incentives. A more complex & more server code runs ensure more $$$ for them. I don't see community being able to do much change just like how useContextSelector was deprioritized by the React Core team.Align early on wrt values of a framework and take a closer look at the funder's incentives.
by morsmodr
12/12/2025 at 12:56:39 AM
I've been using React since its initial release; I think both RSC and App Router are great, and things are better than ever.It's the first stack that allows me to avoid REST or GraphQL endpoints by default, which was the main source of frontend overhead before RSC. Previously I had to make choices on how to organize API, which GraphQL client to choose (and none of them are perfect), how to optimize routes and waterfalls, etc. Now I just write exactly what I mean, with the very minimal set of external helper libs (nuqs and next-safe-action), and the framework matches my mental model of where I want to get very well.
Anti-React and anti-Next.js bias on HN is something that confuses me a lot; for many other topics here I feel pretty aligned with the crowd opinion on things, but not on this.
by berekuk
12/12/2025 at 2:11:12 AM
Can you describe how rsc allows you to avoid rest endpoints? Are you just putting your rsc server directly on top of your database?by codemonkey-zeta
12/12/2025 at 3:53:57 AM
If I control both the backend and the frontend, yes. Server-only async components on top of layout/page component hierarchy, components -> DTO layer -> Prisma. Similar to this: https://nextjs.org/blog/security-nextjs-server-components-ac...You still need API routes for stuff like data-heavy async dropdowns, or anything else that's hard to express as a pure URL -> HTML, but it cuts down the number of routes you need by 90% or more.
by berekuk
12/12/2025 at 10:32:20 AM
You’re just shifting the problem from HTTP to an adhoc protocol on top of it.by skydhash
12/12/2025 at 2:54:52 PM
Yes but they’re also shifting the problem from one they explicitly have to deal with themselves to one the framework handles for them.Personally I don’t like it but I do understand the appeal.
by afavour
12/12/2025 at 2:57:36 PM
Maybe, but you go from one of the most tested protocol with a lot of tooling to another with not even a specification.by skydhash
12/12/2025 at 1:20:15 AM
Some of the anti-next might be from things like solid-start and tanstack-start existing, which can do similar things but without the whole "you've used state without marking as a client component thus I will stop everything" factor of nextjs.Not to mention the whole middleware and being able to access the incoming request wherever you like.
by c-hendricks
12/12/2025 at 4:20:03 AM
And vercelby kyleee
12/12/2025 at 4:25:33 PM
That's true, can't blame people for having a bad taste of VC funded companies taking the reigns on open source projects.by c-hendricks
12/12/2025 at 3:21:27 AM
Personally, I love App Router: it reminds me of the Meta monorepos, where everything related to a certain domain is kept in the same directory. For example, anything related to user login/creation/deletion might be kept in the /app/users directory, etc.But I really, really do not like React Server Components as they work today. I think it's probably better to strip them out in favor of just a route.ts file in the directory, rather than the actions files with "use server" and all the associated complexity.
Technically, you can build apps like that using App Router by just not having "use server" anywhere! But it's an annoying, sometimes quite dangerous footgun to have all the associated baggage there waiting for an exploit... The underlying code is there even if you aren't using it.
I think my ideal setup would be:
1. route.ts for RESTful routes
2. actions/SOME_FORM_NAME.ts for built-in form parsing + handling. Those files can only expose a POST, and are basically a named route file that has form data parsing. There's no auto-RPC, it's just an HTTP handler that accepts form data at the named path.
3. no other built-in magic.
by reissbaker
12/12/2025 at 4:55:24 AM
Route files are still RSCs. Actions/“use server” are unrelated.by robertoandred
12/12/2025 at 6:02:43 AM
Route files are no different than the pages router that preceded them, except they sit in a different filepath. They're not React components, and definitely not React Server Components. They're not even tsx/jsx files, which should hint at the fact that they're not components! They just declare ordinary HTTP endpoints.RSCs are React components that call server side code. https://react.dev/reference/rsc/server-components
Actions/"use server" functions are part of RSC: https://react.dev/reference/rsc/server-functions They're the RPC system used by client components to call server functions.
And they're what everyone here is talking about: the vulnerabilities were all in the action/use server codepaths. I suppose the clearest thing I could have said is that I like App Router + route files, but I dislike the magic RPC system: IMO React should simplify to JSON+HTTP and forms+HTTP, rather than a novel RPC system that doesn't interoperate with anything else and is much more difficult to secure.
by reissbaker
12/12/2025 at 3:32:51 AM
I find myself just wanting to go all the way back to SPAs—no more server-side rendering at all. The arguments about performance, time to first paint, and whatever else we're supposed to care about just don't seem to matter on any projects I've worked on.Vercel has become a merchant of complexity, as DHH likes to say.
by stack_framer
12/12/2025 at 4:05:51 AM
I think the context matters here - for SEO heavy marketing pages I still see google only executing a full browser based crawl for a subset of pages. So SSR matters for the remainder.by farley13
12/12/2025 at 3:23:48 PM
Htmx does full server rendering and it works beautifully. Everything is RESTful–endpoints are resources, you GET (HTML) and POST (HTTP forms) on well-defined routes, and it works with any backend. Performance, including time to interactive and user device battery life, are great.by yawaramin
12/12/2025 at 4:56:24 AM
SPAs can still be server rendered.by robertoandred
12/12/2025 at 6:02:42 AM
We're migrating away from both Next and Vercel post-hasteby awestroke
12/12/2025 at 6:14:49 AM
What are you migrating to? Vanilla React?by Seattle3503
12/12/2025 at 11:11:38 AM
Vanilla react, ts-restby awestroke
12/13/2025 at 9:24:52 PM
Gotcha, that makes sense. Thanks!by Seattle3503
12/12/2025 at 10:31:15 AM
Probably an unpopular take, but I really think Vercel has lost the plot. I don't know what happened to the company internally. But, it feels like the first few, early, iterations of Next were great, and then it all started progressively turning into slop from a design perspective.An example of this is filesystem routing. Started off great, but now most Next projects look like the blast radius of a shell script gone terribly wrong.
There's also a(n in)famous GitHub response from one of the maintainers backwards-rationalising tech debt and accidental complexity as necessary. They're clearly smart, but the feeling I got from reading that comment was that they developed Stockholm syndrome towards their own codebase.
by spoiler
12/11/2025 at 10:16:26 PM
I pretty much dumped a side project that was using next over the new router. It's so much more convoluted, way too many limitations. Who even really wants to make database queries in front end code? That's sketchy as heck.by dawnerd
12/12/2025 at 12:31:57 AM
A lot of functionality is obviously designed for Vercel's hosting platform, with local equivalents as an afterthought.by Frotag
12/11/2025 at 10:27:07 PM
This is what I asked my small dev team after I recently joined and saw that we were using Next for the product — do we know how this works? Do we have even a partial mental model of what's happening? The answers were sadly, pretty obvious. It was hard enough to get people to understand how hooks worked when they were introduced, but the newer Next versions seem even more difficult to grok.I do respect the things React + Next team is trying to accomplish and it does feel like magic when it works but I find myself caring more and more about predictability when working with a team and with every major version of Next + React, that aspect seems to be drifting further and further away.
by sangeeth96
12/12/2025 at 3:36:42 AM
I feel the same. In fact, I'll soon be preparing a lunch and learn on trying out Solid.js. I'm hoping to convince the team that we should at least try a different mental model and see if we like it.by stack_framer
12/12/2025 at 5:56:05 AM
Should just use Vue.by thewtf
12/12/2025 at 11:08:24 AM
Should just use Svelte.by bargainbin
12/13/2025 at 6:34:41 PM
Using React instead of Svelte to build an app is like using a pile of wet noodles instead of a nail gun.by braebo
12/12/2025 at 4:54:59 AM
This is why I'm a big advocate of Inertia.js [1]. For me it's the right balance of using "serious" batteries included traditional MVC backends like Laravel, Rails, Adonis, Django, etc... and modern component based frontend tools like React, Vue, Svelte, etc. Responsibilities are clear, working in it is easy, and every single time I used it feels like you're using the right tool for each task.I can't recommend it enough. If you never tried/learnt about it, check it out. Unless you're building an offline first app, it's 100% the safest way to go in my opinion for 99.9% of projects.
by 0xblinq
12/12/2025 at 10:08:00 AM
I am also in love with Inertia, it lets you use a React frontend and a Laravel backend without a dedicated API or endpoints, its so much faster to develop and iterate, and you dont need to change your approach or mental model, it just makes total sense.Instead of creating routes and using fetch() you just pass the data directly to the client side react jsx template, inertia automatically injects the needed data as json into the client page.
by tacker2000
12/12/2025 at 3:35:11 AM
I do think RSC and server side rendering in general was over adopted.Have a Landing/marketing page? Then, yes, by all means render on the server (or better yet statically render to html files) so you squeeze every last millisecond you can out of that FCP. Also easy to see the appeal for ecommerce or social media sites like facebook, medium, and so on. Though these are also use cases that probably benefit the least from React to begin with.
But for the "app" part of most online platforms, it's like, who cares? The time to load the JS bundle is a one time cost. If loading your SaaS dashboard after first login takes 2 seconds versus 3 seconds, who cares? The amount of complexity added by SSR and RSC is immense, I think the payout would have to be much more than it is.
by jaredklewis
12/12/2025 at 6:38:26 AM
Deeply agree.by sakesun
12/12/2025 at 5:55:36 PM
I've been at an embarassing number of places where turning off server side rendering improved performance as the number of browsers rendering content scales with the number of users, but the server-side rendering provisioning doesn'tby procaryote
12/11/2025 at 11:56:04 PM
I had this issue with a React app I inherited, there was a .env with credentials, and I couldn't figure out whether it was being read from the frontend or the backend.So I ran a static analysis (grep) on the apk generated and
points light at face dramatically
the credentials were inside the frontend!
by TZubiri
12/12/2025 at 1:05:01 AM
Why would you have anything for the backend in an APK? Wouldnt that be an app, that by definition runs on the client?Most frameworks also by default block ALL environment variables on the client side unless the name is preceded by something specific, like NEXT_PUBLIC_*
by jaredwiener
12/12/2025 at 2:54:52 AM
> Most frameworks also by default block ALL environment variables on the client sideI’ve been out of full stack dev for ~5 years now, and this statement is breaking my brain
by mcpeepants
12/12/2025 at 4:59:31 AM
Why would you have anything for the backend in a browser app? Wouldn't that by definition run on the client?These kind of node + Mobile apps typically use an embedded browser like electron or a builtin browser, it's not much different than a web app.
by TZubiri
12/12/2025 at 3:37:56 AM
I'm no javascript framework expert, but how vulnerable do people estimate other frameworks like Angular, Sveltekit and Nuxt to be to this sort of thing? Is React more disposed to be at risk? Is it just because there are more eyes on React due to its popularity?by joshdavham
12/12/2025 at 3:53:02 AM
nuxt, sveltekit etc don't have RSC equivalent. and won't have in future either. Vue has discussed it and explicitly rejected it. also RSC was proposed to sveltekit, they also rejected it citing public endpoint should not be hiddenthey may get other vulnemerelities as they are also in JS, but RSC class vulelnebereleties won't be there
by rk06
12/12/2025 at 11:22:46 AM
please forgive typos in above comment. i can no longer edit themby rk06
12/12/2025 at 5:04:06 PM
Haha don’t sweat it dude. Happens to literally everyone on HN.by joshdavham
12/11/2025 at 10:23:29 PM
This happens in Next.js as well https://github.com/vercel/next.js/discussions/11106by ashishb
12/12/2025 at 2:51:33 AM
Yeah. Being able to write code that's polymorphic between server and client is great, but it needs to be explicit and checked rather than invisible and magic. I see an analogy with e.g. code that can operate on many different types: it's a great feature, but really you want a generics feature where you can control which types which pieces of code operate on, not a completely untyped language.by lmm
12/12/2025 at 11:44:13 AM
It is explicit and checked.You have two poison pills (`import "server-only"` and `import "client-only"`) that cause a build error when transitively imported from the wrong environment. This lets you, for example, constrain that a database layer or an env file can never make it into the client bundle (or that some logic that requires client state can never be accidentally used from the stateless request/response cycle). You also have two directives that explicitly expose entry points between the two worlds.
The vulnerabilities in question aren't about wrong code/data getting pulled into a wrong environment. They're about weaknesses in the (de)serialization protocol which relied on dynamic nature of JavaScript (shared prototypes being writable, function having a string constructor, etc) to trick the server into executing code or looping. These are bad, yes, but they're not due to the client/server split being implicit. They're in the space of (de)serialization.
by danabramov
12/12/2025 at 8:40:22 AM
I 100% agree. I didn't even bother to think about the security implications - why worry about security implications if the whole things seems like a bad idea?In retrospect I should have given it more thought since React Server Components are punted in many places!
by dirkc
12/12/2025 at 5:39:22 AM
turns out a separation of concern is valid approach for decadesReact team reinvent the wheel again and again and now we back to laravel
by tonyhart7