-
Hello. I want to use dynamic routing in my project. I have a class that extends class Page extends Component {
constructor(props) {
super(props);
console.log(props.router.query.page);
}
// ....
}
export default withRouter(Page); The problem is that when I reload the page, I get When reading the
But how do I get that update? I'm using next.js 11 and I'm in dev-mode ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 24 replies
-
Hey. Read this https://www.smashingmagazine.com/2021/06/client-side-routing-next-js/ |
Beta Was this translation helpful? Give feedback.
Hey. Read this https://www.smashingmagazine.com/2021/06/client-side-routing-next-js/