TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Next.js, Just Why?

29 点作者 madmax108超过 1 年前

7 条评论

ecf超过 1 年前
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.<p>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.
评论 #37516089 未加载
jcoletti超过 1 年前
Completely agree with the point of middleware only supporting the Edge runtime. This borders vendor lock-in and continues to be an ongoing debate: <a href="https:&#x2F;&#x2F;github.com&#x2F;vercel&#x2F;next.js&#x2F;discussions&#x2F;46722">https:&#x2F;&#x2F;github.com&#x2F;vercel&#x2F;next.js&#x2F;discussions&#x2F;46722</a>. Hope they add the ability to switch to Node.js runtime.
fnky超过 1 年前
I&#x27;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&#x27;s simply not possible with Server Components only.<p>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.<p>I really don&#x27;t understand how cookies and headers can be provided, but not even just the requested path.
jondwillis超过 1 年前
I started a project that is using Next.js 13 w&#x2F; 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&#x2F;cons of continuing to avoid it?
flagged24超过 1 年前
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&#x2F;RSC.
floydnoel超过 1 年前
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超过 1 年前
As a developer starting a new project, what would you use instead?
评论 #37450395 未加载
评论 #37452073 未加载
评论 #37478393 未加载