1800ms for a simple static RSC with no data fetching #67162
Unanswered
mikecfisher
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a relatively large enterprise app, and we've adopted a pattern where a drawer renders with a form inside, similar to a modal. I'm implementing the parallel route pattern where all the drawers reside in my app.
All of my drawer components are RSCs (React Server Components), and they contain client components with the form. However, I've noticed the drawers are rendering quite slowly with a TTFB (Time to First Byte) of around 1.8 seconds. To isolate the issue, I created the most basic RSC that is simply the drawer wrapper with static text, but in dev tools, I still see a TTFB of about 1.8 seconds.
This is observed while testing locally with a production build using the following commands:
NODE_ENV=production pnpm build && pnpm startI've disabled all middleware but am still having the issue. Below are the two components I'm testing with:
Does anyone have any insights into what might be causing this slowness or advice on how I can debug this further?
Beta Was this translation helpful? Give feedback.
All reactions