-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first test of example-react-router fails #897
Comments
This looks simpler anyway and |
sure, will send a pr |
I recall this was a point of contention with ReactRouter regarding the recommended approach, because you can't interop with window.location and other APIs that real apps use in conjunction with RR when using MemoryRouter. |
Shouldn't you use Regardless, I would rather follow their advise and when they recommend a different approach, we can sync again. Otherwise we should document explicitly why we use a different approach. |
Previous discussion: remix-run/react-router#7169 (comment) |
Hey, which version of react-router are you using? If you're using the stable version of react-router (v5) and history (v5), the tests will fail. You need to downgrade history to v4 for the route change to work. Issue 869 documents the incompatibly. My PR to add a note about the dependency incompatibly was was rejected. |
Hi, is this one still relevant for RR v6? |
the first example of example-react-router fails
to be more precise
To Reproduce Steps to reproduce the behavior:
Expected behavior All three test cases should pass
Screenshots
However I could resolve the error by rendering the App component like this
The text was updated successfully, but these errors were encountered: