-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[v6] Support history prop on <BrowserRouter /> #7585
Comments
You would need to implement your own Router component in the new system. |
Yes i have already seen beta0 code I suppose to add history suport on <BrowserRouter not <Router, just small change: export function BrowserRouter({ children, history, window }: BrowserRouterProps) {
let historyRef = React.useRef<BrowserHistory>();
if (historyRef.current == null) {
historyRef.current = history || createBrowserHistory({ window });
} Isn't it possible? @timdorr |
Yeah, that should be fine. You can always open up a PR, no need to ask. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys, great work with v6 release!
Just a little note:
It would be nice to add support for a already created history object on <BrowserRouter
and skip creation if it is passed as prop.
We need it to support redux-first-history integration.
Can i open a PR about it?
Regards,
The text was updated successfully, but these errors were encountered: