-
Next.js 13 introduces the This discussion is where you can provide feedback on the new conventions and features around layouts, server components, streaming, and more. If you have feedback on Turbopack, please use this discussion. |
Beta Was this translation helpful? Give feedback.
Replies: 831 comments 1785 replies
-
For me, the one big remaining question is how to handle form POSTs in this new structure. My company has interaction with the server built around progressively enhanced form handling (currently using next-runtime to get a more Remix-like experience), and this is one of the things I was hoping would be front and center, but so far it seems to be conspicuously missing. |
Beta Was this translation helpful? Give feedback.
-
RE: On-demand Revalidation, there's a call out in Data Fetching > Revalidating Data, but it doesn't seem to appear listed elsewhere (nor on Roadmap). It'd be great to understand the plan for On-demand Revalidation on the Many thanks! |
Beta Was this translation helpful? Give feedback.
-
I have noticed that when working with layouts everything gets wrapped with a |
Beta Was this translation helpful? Give feedback.
-
Even if react StrictMode is turned off, useEffect is run 2 times in new app directory. |
Beta Was this translation helpful? Give feedback.
-
Attempting to use css modules in client components and the class names are applied but the css is not created, I am assuming (hoping) this is a bug. |
Beta Was this translation helpful? Give feedback.
-
What was the reason to switch from If that's the case, I find it's really ugly to have a bunch of folders with just a |
Beta Was this translation helpful? Give feedback.
-
To keep focus on the other question thread specific to that question, I'm making a new comment for another question... If "Root Layout" is required and has |
Beta Was this translation helpful? Give feedback.
-
I can't wait for API Routes support in the |
Beta Was this translation helpful? Give feedback.
-
I am currently testing some stuff out in the take a look at screenshots app/layout.tsx code
app/page.tsx code
app/account/page.tsx code
app/movie/page.tsx code
|
Beta Was this translation helpful? Give feedback.
-
After little bit of trying,
|
Beta Was this translation helpful? Give feedback.
-
I use |
Beta Was this translation helpful? Give feedback.
-
I found a problem with CSS Modules, when I move |
Beta Was this translation helpful? Give feedback.
-
Creating a page at route |
Beta Was this translation helpful? Give feedback.
-
Hello, just tried to upgrade to next13 and turbopack on a project of mine (typescript, MUI) and I get this error: I don't have any reference of |
Beta Was this translation helpful? Give feedback.
-
Can anyone tell me, or better yet provide an example, on how to have a Client Component (user input, check box, radio button) and pass that information to a Server Component that calls an API. I have a component that has an input field that a user can use to search for employees. I have a Server Component that uses Fetch that returns the output and displays that output. (currently all employees since the User Input doesn't control it). What I can't figure out is how do I get the User's Input (Client Component Input) to the Server Component so it's interactive? This is using the new APP directory. |
Beta Was this translation helpful? Give feedback.
-
I am trying to build a SPA using app directory but got a lot of warning when building, is there a way to suppress them? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have a weird problem with fetch API and middleware. I am using the experimental app next.js with laravel. When I use the |
Beta Was this translation helpful? Give feedback.
-
Why is |
Beta Was this translation helpful? Give feedback.
-
With the App directory, how do you make the following combination from the pages directory work?
Now, with the RSC approach, is there an equivalent that does not require useSWR. I assume that the revalidation from the |
Beta Was this translation helpful? Give feedback.
-
I'm loading 3 Scripts inside the layout.tsx file. These scripts are only being loaded when the first page accessed is the main page. Whenever I hard refresh my site outside the main page the files don't get loaded.
I'm using next |
Beta Was this translation helpful? Give feedback.
-
Overall I like the new structure. One thing I'd like to see is the ability to customize headers in SSR routes, not just API routes. For example, if there's a page that represents a sporting match and the scores are server-side rendered, I'd like to set the export async function getResponseHeaders(response) {
const matchStatus = await getMatchStatus();
response.set('cache-control', `public, s-maxage=${isInProgress ? 60 : 1800}`);
}
export default function MatchPage(props) {
// render the page here
} |
Beta Was this translation helpful? Give feedback.
-
I have some feedback on the File-Based Metadata API. I'm loving the conventions, but I ran into an issue with |
Beta Was this translation helpful? Give feedback.
-
Anyone else running into an issue where a |
Beta Was this translation helpful? Give feedback.
-
The headers functions, |
Beta Was this translation helpful? Give feedback.
-
Feedback on parallel + intercept routes I was able to get a basic version of a "either open in modal or separate page based on current route" interaction. Overall I'm glad that is now possible natively without super hacky code. I had some suggestions for improvements:
Thank you team! |
Beta Was this translation helpful? Give feedback.
-
Feedback + Question I'm currently using appDir with Mui and its So I can't use Metadata or generateMetadata because of the How can I change metadata in a component using |
Beta Was this translation helpful? Give feedback.
-
App Router StabilityHey folks, exciting news. The Next.js App Router is now stable! We couldn't have gotten without the literally thousands of replies in this discussion helping us uncover bugs, patch issues, and iterate on our design based on your feedback. We greatly appreciate it. Our focus for the coming weeks will be on fixing any additional bugs that come up during this new wave of feedback. Now that the router is stable, there are more additions we want to make, many based on the feedback shared here. To help make it easier to track feedback and upvote or discuss specific feature requests moving forward, we're going to close out this discussion. We've made a new section in Discussions specifically for the App Router where you can open new discussions and continue the conversation. Frequently Asked QuestionsThese are from the 13.4 blog post, but reposting here for clarity. What does App Router stability mean?Marking the App Router as stable today does not mean our work is done. Stability means that the core of the App Router is ready for production and has been validated by both our own internal testing, as well as many Next.js early adopters. There are still additional optimizations we'd like to make in the future, including Server Actions reaching full stability. It was important for us to push towards core stability to help provide clarity for the community on where they should begin learning and building applications today. The App Router is built on top of the React What does this mean for the Next.js beta docs?Starting today, we recommend building new applications with the App Router. The Next.js beta documentation, which has been used to explain the App Router and re-written from the ground up, is now merged back into the stable Next.js documentation. You can now easily toggle between the App or Pages Router. We recommend reading the App Router Incremental Adoption Guide to learn how to adopt the App Router. Is the pages directory going away?No, the pages directory is not going away. We are committed to supporting Using both Does this mean Server Components are "complete"?Next.js is one framework that is choosing the build on the React architecture, which includes Server Components. We hope that the experience provided with the App Router will encourage other frameworks (or new frameworks) to consider using this architecture, as well. There are still patterns yet to be defined in this ecosystem, like handling infinite scroll. For now, we recommend using client solutions for these patterns while the ecosystem grows and libraries are created or updated. |
Beta Was this translation helpful? Give feedback.
-
Server actions/mutations looks really great! I have two questions.
thank you for great work, Vercel team. |
Beta Was this translation helpful? Give feedback.
App Router Stability
Hey folks, exciting news. The Next.js App Router is now stable!
We couldn't have gotten without the literally thousands of replies in this discussion helping us uncover bugs, patch issues, and iterate on our design based on your feedback. We greatly appreciate it. Our focus for the coming weeks will be on fixing any additional bugs that come up during this new wave of feedback.
Now that the router is stable, there are more additions we want to make, many based on the feedback shared here. To help make it easier to track feedback and upvote or discuss specific feature requests moving forward, we're going to close out this discussion.
We've made a new section in Discuss…