Skip to content
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

[Deps]: Upgraded react-router-dom #2565

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yashpandey06
Copy link

Which problem is this PR solving?

Description of the changes

  • Upgraded react router dom to 7.x.x dependency

Checklist

@yashpandey06 yashpandey06 requested a review from a team as a code owner January 7, 2025 18:25
@yashpandey06 yashpandey06 requested review from jkowall and removed request for a team January 7, 2025 18:25
@yashpandey06 yashpandey06 force-pushed the upgrade-react-router-dom branch 3 times, most recently from 010b43e to b863fe5 Compare January 7, 2025 18:40
</Switch>
</Page>
</Router>
<Page>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

previously there was a history attribute

<Router history={history}>

what's the implication of removing it?

Disclaimer: I am not a React developer, don't know how any of this works.

Copy link
Author

@yashpandey06 yashpandey06 Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is handled internally need v6+ version

Copy link
Member

@yurishkuro yurishkuro Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you removed the screenshot of the docs, please add a link to those docs instead

@yashpandey06 yashpandey06 force-pushed the upgrade-react-router-dom branch from b863fe5 to 23f3396 Compare January 7, 2025 18:54

import '../common/vars.css';
import '../common/utils.css';
import 'antd/dist/reset.css';
import './index.css';
import { history, store } from '../../utils/configure-store';
import { HistoryProvider } from '../../utils/useHistory';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ../../utils/useHistory used anywhere else? Should it be deleted?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yurishkuro yeah i believe ....this is significant to notice that we can even replace useHistory hook and withProps component functionality with useNavigate .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure it answers my question - since this is the primary navigation piece of the app and you're no longer importing useHistory module, should this PR not also include the deletion of said module?

@@ -77,8 +77,7 @@
"react-is": "^18.2.0",
"react-json-view-lite": "2.0.1",
"react-redux": "^8.1.2",
"react-router-dom": "5.3.4",
"react-router-dom-v5-compat": "^6.24.0",
"react-router-dom": "7.1.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect this needs changed to package-lock

@yashpandey06 yashpandey06 force-pushed the upgrade-react-router-dom branch from 23f3396 to d073538 Compare January 7, 2025 19:26
@@ -20115,13 +20019,12 @@
"react-icons": "^5.0.1",
"react-is": "^18.2.0",
"react-json-view-lite": "2.0.1",
"react-redux": "^9.2.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hari45678 this looks like a left over from #2553?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes actually. i hand picked the changes from original PR. This got left out.

@@ -20160,7 +20063,7 @@
"jest-junit": "^16.0.0",
"less": "4.2.0",
"react-test-renderer": "^18.3.1",
"rollup-plugin-visualizer": "^5.13.1",
"rollup-plugin-visualizer": "^5.11.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any idea what's causing this downgrade?

@@ -20489,7 +20438,7 @@
"style-loader": "4.0.0",
"webpack": "^5.92.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.2.0",
"webpack-dev-server": "^5.0.4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

downgrade?

@anshgoyalevil
Copy link
Member

Looking at the changes. Have you tested them locally? @yashpandey06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Deps] Upgrade react-router-dom to 7.x
4 participants