-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Memoize result from useRouteMatch() when a path is passed #7822
Conversation
Closes #7019
* explain same component in multiple routes wanted to clarify the behavior seen here: https://codesandbox.io/s/sleepy-hopper-bgntr * Update packages/react-router/docs/api/Route.md Co-Authored-By: Tim Dorr <[email protected]>
As suggested in [CRA Readme](https://github.com/facebook/create-react-app#quick-overview) and to avoid [warnings related](https://stackoverflow.com/questions/59188624/template-not-provided-using-create-react-app)
* Add documentation for component prop Documented the existence of the `component` prop and gave an example illustrating how to use it * Update Link.md
* Fixed Link component prop type check * Update packages/react-router-native/Link.js Co-authored-by: Tim Dorr <[email protected]>
* Clearly describe API of callback in code * fix syntax error
Update to latest version, as it doesn't depend anymore on the `gud` package, a package that has a problematic license file (missing copyright). The API seems to be the same, so there shouldn't be any issues with this update.
the test has passed the rollup packaging mechanism!
Co-authored-by: Tim Dorr <[email protected]>
Co-authored-by: Zavrazhnev Konstantin <[email protected]>
Since the project doesn't have much activity right now, issues and PRs are getting closed without further investigation. Until either Ryan or Michael can devote some more time to React Router (understand they are _very_ busy at the moment and fighting to survive the pandemic economy), let's just turn this thing off for now.
Closes #7789
"navigates home when you click the logo" fails because of minor issues * the path to the route with the link was wrong * the id for the link was wrong * the text on the target page was wrong * providing an argument to the anonymous function makes the timeout waiting for completion callback
@timdorr I've incorporated the feedback, can you take another look? |
} | ||
|
||
const path = "/home"; | ||
const renderer = create( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps I should be wrapping this in a renderStrict
call as well. Can't really use it directly since renderStrict
calls ReactDOM, but I could export the StrictMode
wrapper used there.
@timdorr any chance you can take a look into this to see if it can be merged? |
@mjackson is better suited for this than me right now. |
@mjackson Would you prefer that I direct this change into v6? I can see the same behavior is still present there for Also will v6 still have the |
Closing this PR as the conflicts with the new version are just too great. |
Also adds more test cases, closes #7059