Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

refresh page in next js

import { useRouter } from 'next/router'

//...

const router = useRouter()

router.reload(window.location.pathname)
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #refresh #page #js
ADD COMMENT
Topic
Name
2+2 =