Next.js Discord

Discord Forum

router.refresh() not working

Unanswered
Manisha posted this in #help-forum
Open in Discord
I’m using next js 14 app router, “router/navigation” - router. refresh() function re-rendering the server action right?. but it’s not working.

2 Replies

how did you use it?
router. refresh() function re-rendering the server action right

Try using revalidatePath('/') in your server action before ending the function. These will force re-rendering of server action