Readit News logoReadit News
ecf · 2 years ago
I reported a bug months ago where app router hydration errors were occurring while copy and pasting example code directly from their official docs. Still hasn’t been fixed.

I will never recommend a project use Next for as long as I’m a software engineer. Maybe a bit dramatic, but a dumpster fire is brewing over at Next.

fragmede · 2 years ago
link to the GitHub issue that you reported the bug on?

Deleted Comment

jcoletti · 2 years ago
Completely agree with the point of middleware only supporting the Edge runtime. This borders vendor lock-in and continues to be an ongoing debate: https://github.com/vercel/next.js/discussions/46722. Hope they add the ability to switch to Node.js runtime.
fnky · 2 years ago
I've had the encountered same problem when trying to just get the request path in order to highlight the current active page link in a navigation. It's simply not possible with Server Components only.

I ended up having to wrap each nav link in a client-side component, meaning the active state is lost in no-JS land (but will still render the nav on the server). The provider just wraps the link to provide a class, which can then be used to identify, with CSS, which link is active.

I really don't understand how cookies and headers can be provided, but not even just the requested path.

jondwillis · 2 years ago
I started a project that is using Next.js 13 w/ Page Router (App Router was still in beta when I started it.) I haven’t looked much at App router yet, but what are the technical pros/cons of continuing to avoid it?
flagged24 · 2 years ago
A pretty sad state of affairs. I really liked Next.js pre App Router but feel this new direction is not for me. Sure we can still use the legacy routing but they clearly steer towards App Router/RSC.
floydnoel · 2 years ago
half-baked APIs seem to be par for the course with Next. Vercel feels like the Microsoft of React, trying to force everyone in the ecosystem to go through them. Gives me a cold prickly feeling!
Justsignedup · 2 years ago
As a developer starting a new project, what would you use instead?
flagged24 · 2 years ago
That's a tough spot to be in. I would probably use Next 13 with page routing. If say Remix gets more traction, switching shouldn't be too difficult. Same for Qwik which has a similar tsx/jsx syntax. It's going to be interesting to see how this pans out. It looks like more people are getting annoyed with the direction Next.js is going.
Justsignedup · 2 years ago
Good to know. I'll probably ask this question in a year :)

I tried Next 12 and loved it. Sad to see bad direction.

hpeter · 2 years ago
Try Deno Fresh https://fresh.deno.dev/

Deno supports importing node modules now so you can import whatever dependency you desire. I even used browser imports on the server, it's so flexible.

Island based hydration is a great idea and it's a super productive framework to use. Fresh uses Preact, I spent the last few months using it and I never caught myself fighting with the framework, unlike nextjs where it's a constant struggle

0xblinq · 2 years ago
I’ve moved to Laravel + Inertia + React.

Feels even better than the “pages” router from next, it’s a hell lot more stable and simple, and you get a real backend framework such as Laravel which is great.