Skip to content

Commit

Permalink
feat: upgrade react router to v6 (openedx#174)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Carter <[email protected]>
  • Loading branch information
2 people authored and bra-i-am committed Apr 30, 2024
1 parent 77e9a9a commit acf6670
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 78 deletions.
104 changes: 31 additions & 73 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"react-intl": "^5.20.9",
"react-pdf": "^5.5.0",
"react-redux": "^7.2.9",
"react-router": "5.3.4",
"react-router-dom": "5.3.4",
"react-router": "6.15.0",
"react-router-dom": "6.15.0",
"react-router-redux": "^5.0.0-alpha.9",
"redux": "4.2.1",
"redux-beacon": "^2.1.0",
Expand Down Expand Up @@ -92,4 +92,4 @@
"redux-mock-store": "^1.5.4",
"semantic-release": "^19.0.3"
}
}
}
2 changes: 1 addition & 1 deletion src/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`app registry subscribe: APP_READY. links App to root element 1`] = `
Symbol(Symbol.observable): [Function],
}
}
wrapWithRouter={true}
wrapWithRouter={false}
>
<App />
</AppProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import App from './App';

subscribe(APP_READY, () => {
ReactDOM.render(
<AppProvider store={store}>
<AppProvider store={store} wrapWithRouter={false}>
<App />
</AppProvider>,
document.getElementById('root'),
Expand Down

0 comments on commit acf6670

Please sign in to comment.