You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
I ran into this error in an application of mine, but didn't think it was a bug at first. I was able to create a reduced test case, but I could just be doing something wrong. The error goes away if I remove the react-router-redux middleware, but I'm still not exactly sure why the error is happening.
Here's a brief explanation of what I'm trying to do:
Render a redux connected component (<Page>) that has a loading indicator at /page/:param
Once the <Page> is done loading its "data" (which is just a setTimeout in the gist) render some elements conditionally based on this.props.params.param
Navigate from /page/1 to /page/2
What I'm seeing is that if the conditionally rendered element is a <Link> I get an invariant violation when navigating from /page/1 to /page/2. If I either change the <Link> element to something else (like an <a> or <span>) or remove the middleware then the error goes away.