Next.js Discord

Discord Forum

Nextjs caching

Unanswered
Short mackerel posted this in #help-forum
Open in Discord
Short mackerelOP
I have a problem/misunderstanding caching behavior in nextjs.

To see the problem go to https://issue-tracker-two-chi.vercel.app/issues

select status filter(Open) and then refresh the page. If you change status to anything except All, it works as expected. But if you select All, it returns issues with Open status(when you refreshed the page first).

Btw filtering without page refresh (after selecting) works as expected.

Filtering is done with page's searchParams and prisma queries, so, in my understanding, page should be dynamic all the time and fetch data for each request

0 Replies