title: useRouter/withRouter receive undefined on query in first render
body: <p>I got a problem with my dynamic route. It look like this </p>
  
  <p><code>[lang]/abc</code></p>
  
  <p>I am trying to get query value from <code>[lang]</code> but when I using <code>useRouter/withRouter</code> i got query during 2-3 render of page ( on first i got <code>query.lang = undefined</code> ). its possible to get in 1 render or use any technique ?</p>
  
  <p><a href="https://i.stack.imgur.com/PqAZF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PqAZF.png" alt="enter image description here"></a></p>