15.1 dynamicIO access to dynamic data in server components
Unanswered
Hudsonian Godwit posted this in #help-forum
Hudsonian GodwitOP
The example of validating session on pages or before fetching data layed out in the docs no longer works in the latest version. Dynamic data is no longer accessible in dynamic routes (Error: A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it.
Cookies also can't be accessed in cached functions. How then is the supposed way of validating a user session before fetching respective data? The way it is suggested in the DAL example in the docs just doesn't work in 15.1 with dynamicIO = true.
Am I wrong?
Cookies also can't be accessed in cached functions. How then is the supposed way of validating a user session before fetching respective data? The way it is suggested in the DAL example in the docs just doesn't work in 15.1 with dynamicIO = true.
Am I wrong?