Answer the question
In order to leave comments, you need to log in
How to change title in head in next.js?
I do this:
<Head>
<title>{this.state.country}</title>
</Head>
while on the page /country/montenegro go to /country/usa
i.e. it turns out this is the same page and only the slug changes and the component does not want to be re-rendered. how to force it?
Answer the question
In order to leave comments, you need to log in
If you are using redux, you can do this:
withRouter(connect(...)(MyComponent))
// or
compose(
withRouter,
connect(...)
)(MyComponent)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question