WIP OU-1271: Upgrade to ReactRouterV6Adapter#852
WIP OU-1271: Upgrade to ReactRouterV6Adapter#852zhuje wants to merge 1 commit intoopenshift:mainfrom
Conversation
…er 7 and conflicts with react router 5
|
@zhuje: This pull request references OU-1271 which is a valid jira issue. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zhuje The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Upgrade to ReactRouterV6Adapter will probably require the breaking changes we have scheduled for Sprint 286 and 287 (e.g. redux, react, and openshift-sdk upgrades)... |
|
@zhuje: This pull request references OU-1271 which is a valid jira issue. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
| "react": ">=15" | ||
| } | ||
| }, | ||
| "node_modules/@openshift-console/dynamic-plugin-sdk/node_modules/react-router-dom-v5-compat": { |
There was a problem hiding this comment.
not sure if we need this. We need to check the uninstallation process.
| "react-modal": "^3.12.1", | ||
| "react-redux": "7.2.9", | ||
| "react-router-dom-v5-compat": "^6.30.0", | ||
| "react-router-dom": "^6.30.0", |
There was a problem hiding this comment.
the latest 6.x version of react-router-dom is 6.30.3
|
|
||
| const DashboardPage_: FC = () => { | ||
| const { t } = useTranslation(process.env.I18N_NAMESPACE); | ||
| const [searchParams] = useSearchParams(); |
There was a problem hiding this comment.
We can still use useSearchParams in react router 6: https://reactrouter.com/6.30.3/hooks/use-search-params
|
We need to find the usages of |
We probably need to update the SDK version |
|
@zhuje: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
JIRA
https://redhat.atlassian.net/browse/OU-1271