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

Migrate to react-router v6 #143

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

denysoblohin-okta
Copy link
Contributor

@denysoblohin-okta denysoblohin-okta commented Nov 2, 2020

react-router v6 introduces breaking changes

  • <Route>s should be inside <Routes>
  • <Route exact> removed, so need to use * in path if it's not exact
  • <Route component> replaced to <Route element>

Issue: https://github.com/okta/okta-oidc-js/issues/853
Internal ref: https://oktainc.atlassian.net/browse/OKTA-318565

PR for okta-react: okta/okta-react#26

Warning! This PR uses react-router 6.0.0-beta.0 and should be revised after stable RR release. Do not merge.

@denysoblohin-okta denysoblohin-okta changed the title Support react-router v6 Migrate to react-router v6 Nov 2, 2020
@shuowu
Copy link
Contributor

shuowu commented Nov 2, 2020

Let's wait on the official react-router-dom v6 release to merge this PR.

@denysoblohin-okta denysoblohin-okta force-pushed the OKTA-318565-react-router-6 branch from 7a25732 to 6ae4878 Compare December 17, 2020 20:11
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.

2 participants