aws amplify production error for next js “An error occurred in the Server Components render”
this is the function in the “use client” file
Nextjs revalidate flashes between old and updated data on aws amplify
I am building a Next.js app with wordpress headless cms that is static built with the revalidation functionality, and deployed on aws amplify, However, when i make a change in my wordpress, it toggles between the lastest data and previous data each time i refresh.
My Cookie is 1 browser refresh late from RootLayout compare to middleware
I am experimentig NextJS since a few days and i have a behavior i am not able to explain.
How to retrieve current user session from RootLayout?
I am trying to handly a basic AppBar (using MUI) and i need to know if the user is logged in or not.