Jcampuza
Jcampuza
TTCTheo's Typesafe Cult
Created by zaini on 4/9/2025 in #questions
How to improve Next.js performance after latest Theo video on why Nextjs is slow?
But you'd also have to be using a newer/more recent version than when that was an issue
17 replies
TTCTheo's Typesafe Cult
Created by zaini on 4/9/2025 in #questions
How to improve Next.js performance after latest Theo video on why Nextjs is slow?
actually I did a bit more looking just to make sure and this may be incorrect. They may have fixed this by now, since I was able to get some routes rendering statically even with the clerk provider rendered in it. I think its just if you call the auth() function at all it will automatically make everything in the page its called in dynamic so you have to be careful its not being used in some component being used everywhere, or only use the hook instead.
17 replies
TTCTheo's Typesafe Cult
Created by zaini on 4/9/2025 in #questions
How to improve Next.js performance after latest Theo video on why Nextjs is slow?
You have to move the clerk provider into a separate client only component and not use it in the root layout directly, or only wrap certain pages with the provider
17 replies
TTCTheo's Typesafe Cult
Created by zaini on 4/9/2025 in #questions
How to improve Next.js performance after latest Theo video on why Nextjs is slow?
17 replies
TTCTheo's Typesafe Cult
Created by zaini on 4/9/2025 in #questions
How to improve Next.js performance after latest Theo video on why Nextjs is slow?
I had this issue actually, and found out its actually the clerk provider. It basically forces everything to be dynamic. I'll try to find the issue for it, but I remember finding one
17 replies