React Router v6 upgrade

In November of 2021, React Router has launched v6 of their router. It has smaller build size, routing improvement and nested route improvements. Most of the MFEs of edX uses frontend-platform for routing. We will launch its major version change as the consumer MFEs would break after these changes.

Approach

FED-BOM will release a major version of frontend-platform and then update each MFE accordingly. We’ll need a review from respective team to run the changes locally or on stage server since there are a lot of code changes in the routing.

Steps to upgrade

For Example

Change

to

  • Make sure all test cases are passing.

  • Make sure all flows of the MFE are working correctly by running the server locally

  • Make sure build is successful and there are no lint issues

Roadmap Ticket

React Router Upgrade to v6 · Issue #276 · openedx/platform-roadmap