refreshing current page
Answered
Shaurya posted this in #help-forum
ShauryaOP
how do I hard refresh the page? I used the router.refresh method from next/navigation but I want to totally refresh the page, client side components too, how could I do that?
2 Replies
you can do a hard page refresh with
window.reload()Answer
Dwarf Crocodile
You can also try to use revalidatePath and reload which will purge the cache