-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
fix: relative navigation from index routes #8697
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,5 @@ | |
- underager | ||
- vijaypushkin | ||
- vikingviolinist | ||
- KutnerUri | ||
- JaffParker |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ export type { | |
Pathname, | ||
Search, | ||
RoutesProps, | ||
} from "./react-router-dom"; | ||
} from "../react-router-dom"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't want to update these paths - they need to point to the local copy of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually - I see your note about the failing tests now. That may just be because you hadn't run |
||
export { | ||
BrowserRouter, | ||
HashRouter, | ||
|
@@ -108,7 +108,7 @@ export { | |
useResolvedPath, | ||
useRoutes, | ||
useSearchParams, | ||
} from "./react-router-dom"; | ||
} from "../react-router-dom"; | ||
|
||
export type { StaticRouterProps } from "./lib/components"; | ||
export { CompatRouter, CompatRoute, StaticRouter } from "./lib/components"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ import { useHistory, Route as RouteV5 } from "react-router-dom"; | |
// We are a wrapper around react-router-dom v6, so bring it in | ||
// and bundle it because an app can't have two versions of | ||
// react-router-dom in its package.json. | ||
import { Router, Routes, Route } from "../react-router-dom"; | ||
import { Router, Routes, Route } from "../../react-router-dom"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here - need to use the local copy of |
||
|
||
// v5 isn't in TypeScript, they'll also lose the @types/react-router with this | ||
// but not worried about that for now. | ||
|
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.
Let's remove
KutnerUri
which is already in here above - likely a merge conflict issue