NextJS14 Server Action Refresh page

Hello Guys. Hope you are all very well. Does anyone (@everyone) know how to refresh the entire dom after a server action using NextJS server actions. I don't mean revalidatePath. I need to need to redirect the user to a new page and then refresh the entire dom. Thank you for you help in advance.
2 Replies
KCIBUR
KCIBUR9mo ago
Hi! import Router from 'next/router' Router.reload(); Should do full page reload
Jonker
Jonker9mo ago
next/router is not used in app router. next navigation is. Also you can't use a router in server actions
Want results from more Discord servers?
Add your server