I want to get URL parameters at the begining of page, but firstly it returns empty, after a while
const rout = useRouter()
useEffect(() => {
console.log('queries:')
console.log(rout.query)
}, [rout])
It returns {} for the first time, but after a render, It returns {'myparam': 'blabla'}
How can I get URL parameter without returning an empty result?