taxonomy icon indicating copy to clipboard operation
taxonomy copied to clipboard

Enhancement: "New Post" loads for a really long time

Open steven-tey opened this issue 2 years ago • 4 comments

Not sure why hitting "New Post" takes a really long time to load (~3-4s):

https://user-images.githubusercontent.com/28986134/200148679-c85411c3-341c-4fbc-8a4b-64e76595526c.mp4

steven-tey avatar Nov 06 '22 00:11 steven-tey

it seems all the pages are taking 3s to load with no suspense management

Geczy avatar Nov 07 '22 19:11 Geczy

i think this might be the next/auth being in server side instead of client side, it will slow the site down :(

Geczy avatar Nov 08 '22 15:11 Geczy

might wanna use unstable_getServerSession instead of getSession: https://next-auth.js.org/configuration/nextjs#unstable_getserversession

steven-tey avatar Nov 08 '22 15:11 steven-tey

I updated the site to use unstable_getServerSession yesterday.

shadcn avatar Nov 08 '22 17:11 shadcn