Next.js Discord

Discord Forum

in what scenerio would server action cause whole route to be revalidated without explicit request?

Answered
Yellow croaker posted this in #help-forum
Open in Discord
Yellow croakerOP
Asking this because I'm not sure why it knows to fetch latest values on parent server component after I submit changes. I havenot put revalidatepath/tag or router.refresh.

using onSubmit in form with server actions + preventDefault()
Answered by Double-striped Thick-knee
@Yellow croaker you can take a look at this
https://github.com/vercel/next.js/issues/50163
View full answer

7 Replies

Yellow croakerOP
its possible , im using getSession() from auth0 library.
Double-striped Thick-knee
it does refresh the site when cookies are set.
Double-striped Thick-knee
@Yellow croaker you can take a look at this
https://github.com/vercel/next.js/issues/50163
Answer
@Double-striped Thick-knee <@245738645305163776> you can take a look at this https://github.com/vercel/next.js/issues/50163
Yellow croakerOP
appreciate this.

-now i'm trying to figure how to see if theres a refresh log on dev tools.
-gonna check auth0 docs if they do mess with cookies.

and this refresh would only be client side right , not a revalidate of any kind.

anyway i'll read that !
yea last comment mentioned of getSession .