Next.js Discord

Discord Forum

use cache enable

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I got problem I can't resolve, I posted it here https://github.com/vercel/next.js/discussions/87893

6 Replies

Transvaal lionOP
@Cinnamon Teal
Transvaal lionOP
@Saint Hubert Jura Hound
Might be wrong here but if you're using cookie state then you shouldn't use cacheComponents
If however you're trying to use PPR then the component using the cookie should be a client component and then it shouldn't e a problem
American Crocodile
You can also not await the cookie on the page, pass it to a client or server component and then await or use use() and wrap in suspense
Allowing the page to be a static shell and streaming in the dynamic content in a lower component