Hi, i have an Route Handler that is fetching data from the DB. It is using export const dynamic = "force-dynamic"
I then have a Server Component that is calling this API Route with fetch. This component is then displayed on a page.
In production, the page/Server Component is displaying yesterday's data. If I refresh the page, it shows today's data. But then if I log out and back in, it's back to yesterday's, so the page seems to be cached.
I thought that export const dynamic = "force-dynamic" on the API Route would then make any fetch calls for this route dynamic? But is the fetch call instead still expected to be cached ?
It seems that adding cache: no store on the fetch fixed it, but I am still trying to get clarity on the logic of how this works. Any help is appreciated.