Next.js Discord

Discord Forum

`revalidatePath` and `noStore`

Unanswered
Mugger Crocodile posted this in #help-forum
Open in Discord
Avatar
Mugger CrocodileOP
if a server component has noStore, indicating that the results should be fetched from database prior to each render, do we still need to call revalidatePath prior to redirecting to that component?

1 Reply

Avatar
American
No, if you fetching data and write cache no store you make your page SSR. if you wanna revalidate, add in fetch function
{next: {revalidate: 10(seconds)}}