Upgrade to 2.4.x+ causing page reloads on click when using redux and react-router
ebertb opened this issue · 0 comments
Since version 2.4.x, instrumented clicks (bindClickEvent is set to true using createI13nNode) are causing the page to reload -- i.e. the app no longer behaves as a single page app (this can be confirmed by looking at the downloads in Chrome's network tab and also by noticing that the browser window refreshes). This is happening when using redux and react-router, but I'm not sure what the root cause is.
I was able to reproduce the issue using the React Redux Starter Kit and adding click instrumentation to the existing links. I made a fork of the project with a single additional commit here that reproduces the issue. Also, if you downgrade the react-i13n version to 2.3.2, you'll see that the issue no longer occurs.