Hi in my reactJS application I use this
this.props.history.push("URL");
to redirect to another page or to the same page when I want to reload the page.
But I got this error:
Hash history cannot PUSH the same path; a new entry will not be added to the history stack
how can I solve this issue?
thanks in advance
I think you are looking for this
this.props.history.push({
pathname: "URL"
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With