Next.js Discord

Discord Forum

flags/next + use cache: 'private' still triggers “uncached data”

Unanswered
Silver Fox posted this in #help-forum
Open in Discord
Silver FoxOP
flags/next reads from request headers, so I wrapped my flag helper with use cache: 'private'.
But on app/page.tsx I still get:

Route "/": Uncached data was accessed outside of <Suspense> (blocking route)

Why would it still be considered “uncached data” even with use cache: 'private'? Is flags/next incompatible with use cache, or is there a specific pattern to avoid this warning?

0 Replies