#full page refresh

3 messages · Page 1 of 1 (latest)

meager helm
#

in nextjs 13
is there any way to fully refresh the page ( like pressing refresh button from browser)
i tried router.refresh() but this one not triggering useEffect(()=>{},[])

in nextjs 12
it works with
router.reload(window.location.pathname);

proud quail
#

for a full reload you can probably just use the standard JS way window.location.reload()

meager helm
#

ok let me try that one